]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #39358 from Jeegn-Chen/wip-tracker-49206
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 23 Jun 2021 14:37:52 +0000 (10:37 -0400)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 14:37:52 +0000 (10:37 -0400)
rgw: avoid infinite loop when deleting a bucket

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
1  2 
src/rgw/rgw_rados.cc

index b198b4c167e43829d8f4cc69fe1539802a51173c,f07da1750098ece33d864ec6c9c246fe5a64baea..e24ae308b491fd3023fbe07ef9578f0e6309cd4e
@@@ -8679,9 -8642,9 +8688,9 @@@ int RGWRados::cls_bucket_list_unordered
      // now convert the key (oid) to an rgw_obj_key since that will
      // separate out the namespace, name, and instance
      rgw_obj_key obj_key;
-     bool parsed = rgw_obj_key::parse_raw_oid(key, &obj_key);
+     bool parsed = rgw_obj_key::parse_raw_oid(start_after.name, &obj_key);
      if (!parsed) {
 -      ldout(cct, 0) <<
 +      ldpp_dout(dpp, 0) <<
        "ERROR: RGWRados::cls_bucket_list_unordered received an invalid "
        "start marker: '" << start_after << "'" << dendl;
        return -EINVAL;