Skip to content

Commit

Permalink
fix: rocksdb metrics error (OpenAtomFoundation#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbt-hz authored Mar 8, 2024
1 parent b7776e2 commit c8bb288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ src/build_version.cc
build/
buildtrees
deps
pkg

#develop container
.devcontainer
Expand Down
2 changes: 1 addition & 1 deletion src/storage/src/storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2397,7 +2397,7 @@ Status Storage::EnableAutoCompaction(const OptionType& option_type,
void Storage::GetRocksDBInfo(std::string& info) {
char temp[12] = {0};
for (const auto& inst : insts_) {
snprintf(temp, sizeof(temp), "instance:%2d", inst->GetIndex());
snprintf(temp, sizeof(temp), "instance%d_", inst->GetIndex());
inst->GetRocksDBInfo(info, temp);
}
}
Expand Down

0 comments on commit c8bb288

Please sign in to comment.