]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: fix bi_log_iterate_entries return wrong truncated 20021/head
authorTianshan Qu <tianshan@xsky.com>
Fri, 19 Jan 2018 05:46:06 +0000 (13:46 +0800)
committerTianshan Qu <tianshan@xsky.com>
Fri, 19 Jan 2018 15:37:20 +0000 (23:37 +0800)
if there are over 1000 entries of instance keys, cls_cxx_map_get_vals
will get truncated=true, but bilogs already reach the end.

fixes: http://tracker.ceph.com/issues/22737

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/cls/rgw/cls_rgw.cc

index ca404ca1e27fee8094f6152d25195f5582f80688..d6b29b915e8261367aaaf342fbfcc0e1dda355a6 100644 (file)
@@ -2602,6 +2602,9 @@ static int bi_log_iterate_entries(cls_method_context_t hctx, const string& marke
 
     if (key.compare(end_key) > 0) {
       key_iter = key;
+      if (truncated) {
+        *truncated = false;
+      }
       return 0;
     }