From a3003f6f4f02e37cf96b6e243203d86ad2e39549 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 (cherry picked from commit e23fdcbbce47aaf041b9f8a0812c8a729aa5014b) --- 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 396d2d83f352..3bc29a6ed45d 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; -- 2.47.3