From e23fdcbbce47aaf041b9f8a0812c8a729aa5014b Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Thu, 25 Feb 2016 16:02:15 +0100 Subject: [PATCH] rgw: reset return code in when iterating over the bucket the objects Fixes: #14826 Signed-off-by: Orit Wasserman --- src/rgw/rgw_rados.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 0e848c1f8091e..74162fb053849 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; -- 2.39.5