mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
rgw: bi list, update marker only if result not empty
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
24aec123fb
commit
a78a93e5a1
@ -6253,7 +6253,9 @@ int RGWRados::list_bi_log_entries(rgw_bucket& bucket, int shard_id, string& mark
|
||||
if (has_shards) {
|
||||
marker_mgr.to_string(&marker);
|
||||
} else {
|
||||
marker = result.rbegin()->id;
|
||||
if (!result.empty()) {
|
||||
marker = result.rbegin()->id;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user