Skip to content

Commit

Permalink
Clear object edges and nodes when loading snapshot completes
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed May 6, 2024
1 parent 4155b84 commit 72fff39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Service/NuRaftLogSnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ void KeeperSnapshotStore::loadLatestSnapshot(KeeperStore & store)
thread_pool.wait();
LOG_INFO(log, "Building data tree costs {}ms", watch.elapsedMilliseconds());

all_objects_edges.clear();
all_objects_nodes.clear();

LOG_INFO(
log,
"Loading snapshot done: nodes {}, ephemeral nodes {}, sessions {}, session_id_counter {}, zxid {}",
Expand Down

0 comments on commit 72fff39

Please sign in to comment.