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: v0.94.8~8^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a3003f6f4f02e37cf96b6e243203d86ad2e39549;p=ceph.git rgw: reset return code in when iterating over the bucket the objects Fixes: #14826 Signed-off-by: Orit Wasserman (cherry picked from commit e23fdcbbce47aaf041b9f8a0812c8a729aa5014b) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 396d2d83f3524..3bc29a6ed45df 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -8170,6 +8170,7 @@ int RGWRados::cls_bucket_list(rgw_bucket& bucket, rgw_obj_key& start, const stri 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;