Skip to content

Commit b984980

Browse files
committed
rgw/notify: fix reading the entries in a loop
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 <[email protected]>
1 parent 9e12916 commit b984980

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rgw/driver/rados/rgw_notify.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ class Manager : public DoutPrefixProvider {
127127
return ret;
128128
}
129129
queues.merge(queues_chunk);
130+
if (more) {
131+
start_after = *queues.rbegin();
132+
}
130133
}
131134
return 0;
132135
}

0 commit comments

Comments
 (0)