This is an automated email from the ASF dual-hosted git repository.
maplefu pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new c5429564a refactor(storage): optimize MDel with MultiGet options
(#3195)
c5429564a is described below
commit c5429564a8d0dd20187ea3bf495fd3be27fcca4d
Author: cyningsun <[email protected]>
AuthorDate: Sat Sep 27 12:58:43 2025 +0800
refactor(storage): optimize MDel with MultiGet options (#3195)
1. Replace `ctx.GetReadOptions()` with `ctx.DefaultMultiGetOptions()` in
the `Database::MDel` method to use read options specifically optimized
for MultiGet operations.
Co-authored-by: mwish <[email protected]>
---
src/storage/redis_db.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage/redis_db.cc b/src/storage/redis_db.cc
index 2898c3b85..c12bb00ec 100644
--- a/src/storage/redis_db.cc
+++ b/src/storage/redis_db.cc
@@ -183,7 +183,7 @@ rocksdb::Status Database::MDel(engine::Context &ctx, const
std::vector<Slice> &k
std::vector<rocksdb::Status> statuses(slice_keys.size());
std::vector<rocksdb::PinnableSlice> pin_values(slice_keys.size());
- storage_->MultiGet(ctx, ctx.GetReadOptions(), metadata_cf_handle_,
slice_keys.size(), slice_keys.data(),
+ storage_->MultiGet(ctx, ctx.DefaultMultiGetOptions(), metadata_cf_handle_,
slice_keys.size(), slice_keys.data(),
pin_values.data(), statuses.data());
for (size_t i = 0; i < slice_keys.size(); i++) {