Skip to content

Commit

Permalink
Remove incorrect copying of node map
Browse files Browse the repository at this point in the history
  • Loading branch information
lzydmxy committed May 8, 2024
1 parent 6304333 commit 9438fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/KeeperStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ std::shared_ptr<KeeperStore::BucketNodes> KeeperStore::dumpDataTree()
if (bucket_idx % MAP_BUCKET_NUM != thread_idx)
continue;
LOG_INFO(log, "Dump datatree index {}", bucket_idx);
auto bucket = this->container.getMap(bucket_idx).getMap();
auto && bucket = this->container.getMap(bucket_idx).getMap();
(*result)[bucket_idx].reserve(bucket.size());
size_t key_size = 0;
for (auto && [path, node] : bucket)
Expand Down

0 comments on commit 9438fb0

Please sign in to comment.