From: Orit Wasserman Date: Thu, 25 Feb 2016 15:02:15 +0000 (+0100) Subject: rgw: reset return code in when iterating over the bucket the objects X-Git-Tag: v10.1.0~291^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e23fdcbbce47aaf041b9f8a0812c8a729aa5014b;p=ceph.git rgw: reset return code in when iterating over the bucket the objects Fixes: #14826 Signed-off-by: Orit Wasserman --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 0e848c1f8091..74162fb05384 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -10859,6 +10859,7 @@ int RGWRados::cls_bucket_list(rgw_bucket& bucket, int shard_id, rgw_obj_key& sta map updates; uint32_t count = 0; while (count < num_entries && !candidates.empty()) { + r = 0; // Select the next one int pos = candidates.begin()->second; const string& name = vcurrents[pos]->first;