]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: reset return code in when iterating over the bucket the objects 7803/head
authorOrit Wasserman <owasserm@redhat.com>
Thu, 25 Feb 2016 15:02:15 +0000 (16:02 +0100)
committerOrit Wasserman <owasserm@redhat.com>
Thu, 25 Feb 2016 15:11:15 +0000 (16:11 +0100)
Fixes: #14826
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_rados.cc

index 0e848c1f8091e35376eb2f2920922a91a1c6806a..74162fb053849007645c34fddf0152edef079a53 100644 (file)
@@ -10859,6 +10859,7 @@ int RGWRados::cls_bucket_list(rgw_bucket& bucket, int shard_id, rgw_obj_key& sta
   map<string, bufferlist> 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;