diff --git a/src/server/db_slice.cc b/src/server/db_slice.cc index 31786dd4abc9..f4bb779d813a 100644 --- a/src/server/db_slice.cc +++ b/src/server/db_slice.cc @@ -294,7 +294,8 @@ pair DbSlice::FindExt(DbIndex db_ind, string_view } }; - db.prime.CVCUponBump(change_cb_.front().first, res.first, bump_cb); + // + db.prime.CVCUponBump(change_cb_.back().first, res.first, bump_cb); } res.first = db.prime.BumpUp(res.first, PrimeBumpPolicy{}); diff --git a/src/server/db_slice.h b/src/server/db_slice.h index ccab1c6b1cce..10587d7b1f54 100644 --- a/src/server/db_slice.h +++ b/src/server/db_slice.h @@ -289,6 +289,7 @@ class DbSlice { // Used in temporary computations in Acquire/Release. absl::flat_hash_set uniq_keys_; + // ordered from the smallest to largest version. std::vector> change_cb_; };