]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bi list, update marker only if result not empty
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Jan 2015 21:37:24 +0000 (13:37 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 14 Jan 2015 03:21:33 +0000 (19:21 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index dc1113e5e403942be87dd19e9f6940db4929caab..5f91704db0289879c5d0e0c8a09834b103c734f7 100644 (file)
@@ -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;