]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notify: fix reading the entries in a loop
authorN Balachandran <nithya.balachandran@ibm.com>
Fri, 14 Nov 2025 03:21:29 +0000 (08:51 +0530)
committerN Balachandran <nithya.balachandran@ibm.com>
Mon, 17 Nov 2025 09:58:01 +0000 (15:28 +0530)
If more than 1024 entries exist, the start_after variable
is updated to enable reading the subsequent set of entries.

Fixes: https://tracker.ceph.com/issues/73812
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
src/rgw/driver/rados/rgw_notify.cc

index 6ca7d45cfddb83e86171b48096e554abdbf43aa7..9dc2de9843052fb2f31c8dcb20f006d5e263b991 100644 (file)
@@ -127,6 +127,9 @@ private:
         return ret;
       }
       queues.merge(queues_chunk);
+      if (more) {
+        start_after = *queues.rbegin();
+      }
     }
     return 0;
   }