This is an automated email from the ASF dual-hosted git repository.

hulk 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 3f426e1a fix(zset): ZREMRANGEBYRANK command is missing LogData (#2808)
3f426e1a is described below

commit 3f426e1a80ea86e10c62744fcd70fccdfa572108
Author: sryan yuan <[email protected]>
AuthorDate: Thu Feb 27 21:19:13 2025 +0800

    fix(zset): ZREMRANGEBYRANK command is missing LogData (#2808)
---
 src/types/redis_zset.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/types/redis_zset.cc b/src/types/redis_zset.cc
index 5fa586d6..bdc07364 100644
--- a/src/types/redis_zset.cc
+++ b/src/types/redis_zset.cc
@@ -253,6 +253,9 @@ rocksdb::Status ZSet::RangeByRank(engine::Context &ctx, 
const Slice &user_key, c
   read_options.iterate_lower_bound = &lower_bound;
 
   auto batch = storage_->GetWriteBatchBase();
+  WriteBatchLogData log_data(kRedisZSet);
+  s = batch->PutLogData(log_data.Encode());
+  if (!s.ok()) return s;
   auto iter = util::UniqueIterator(ctx, read_options, score_cf_handle_);
   iter->Seek(start_key);
   // see comment in RangeByScore()

Reply via email to