From: Yehuda Sadeh Date: Tue, 13 Jan 2015 21:37:24 +0000 (-0800) Subject: rgw: bi list, update marker only if result not empty X-Git-Tag: v0.92~12^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a78a93e5a13298fd92c38841e86aa527d98f4d24;p=ceph.git rgw: bi list, update marker only if result not empty Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index dc1113e5e403..5f91704db028 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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;