Skip to content

Commit

Permalink
Assert that scan-ops only works with all the logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitbhrdwj committed Sep 8, 2021
1 parent 76a9ff3 commit e6d5b52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cnr/src/replica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ where
let nlogs = self.logstate.len();
hash_vec.clear();
op.0.hash(nlogs, &mut hash_vec);
debug_assert_eq!(hash_vec.len(), nlogs, "Append scan ops to all the logs");
let root_log = hash_vec[0];

self.logstate[root_log].slog.acquire_scan_lock(thread_id);
Expand Down

0 comments on commit e6d5b52

Please sign in to comment.