Skip to content

Commit

Permalink
fix: add storage key for gc stats
Browse files Browse the repository at this point in the history
  • Loading branch information
thawk105 committed Feb 8, 2024
1 parent 10f663f commit a673646
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/concurrency_control/garbage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,13 @@ void output_gc_stats(stats_info_type const& stats_info) {
<< "# storages: " << stats_info.size() << std::endl;

for (const auto& elem : stats_info) {
ss << "# entries: " << std::get<1>(elem) << std::endl
std::string str_st_key{};
/**
* It may be fail if it executes after delete_storage against it.
*/
storage::key_handle_map_get_key(std::get<0>(elem), str_st_key);
ss << "storage key: " << str_st_key << std::endl
<< "# entries: " << std::get<1>(elem) << std::endl
<< "avarage length of version list per entry: " << std::get<2>(elem)
<< std::endl
<< "average key size per entry: " << std::get<3>(elem) << std::endl
Expand Down

0 comments on commit a673646

Please sign in to comment.