Skip to content

Commit

Permalink
fix some issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinLeeo committed Mar 5, 2025
1 parent 1f7db8a commit 8bb48d8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- develop
- iotdb
- rc/*
paths-ignore:
- 'docs/**'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ python/data
python/venv/*
python/tests/__pycache__/*
python/tests/*.tsfile

cpp/cmake-build-debug-mingw/
cpp/third_party/googletest-release-1.12.1.zip

.vscode/

Expand Down
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ elseif (CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
endif ()
message("CMAKE DEBUG: CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}")

# enable asan by default.
# disable asan by default.
option(ENABLE_ASAN "Enable Address Sanitizer" OFF)

if (NOT WIN32)
Expand Down
1 change: 0 additions & 1 deletion cpp/src/common/global.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#endif
#include <stdlib.h>

#include "mutex/mutex.h"
#include "utils/injection.h"

namespace common {
Expand Down
12 changes: 4 additions & 8 deletions cpp/src/utils/storage_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,10 @@ struct InsertResult {

FORCE_INLINE std::string get_file_path_from_file_id(
const common::FileID &file_id) {
// TODO prefix len + number len
const int len = 256;
char path_buf[len];
memset(path_buf, 0, len);
// TODO config
// snprintf(path_buf, len, "./%" PRId64 "-%d-%d.tsfile", file_id.seq_,
// file_id.version_, file_id.merge_);
return std::string(path_buf);
std::ostringstream oss;
oss << "./" << file_id.seq_ << "-" << file_id.version_ << "-"
<< file_id.merge_ << ".tsfile";
return oss.str();
}

} // end namespace storage
Expand Down

0 comments on commit 8bb48d8

Please sign in to comment.