Skip to content

Commit aa06364

Browse files
committed
fix: rocksdb metrics error
1 parent a753d90 commit aa06364

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ src/build_version.cc
6464
build/
6565
buildtrees
6666
deps
67+
pkg
6768

6869
#develop container
6970
.devcontainer

src/storage/src/storage.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ Status Storage::EnableAutoCompaction(const OptionType& option_type,
23972397
void Storage::GetRocksDBInfo(std::string& info) {
23982398
char temp[12] = {0};
23992399
for (const auto& inst : insts_) {
2400-
snprintf(temp, sizeof(temp), "instance:%2d", inst->GetIndex());
2400+
snprintf(temp, sizeof(temp), "instance%d_", inst->GetIndex());
24012401
inst->GetRocksDBInfo(info, temp);
24022402
}
24032403
}

0 commit comments

Comments
 (0)