rgw: bi list, update marker only if result not empty

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2015-01-13 13:37:24 -08:00
parent 24aec123fb
commit a78a93e5a1

View 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;