]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge branch 'master' into wip-rgw-optimize-bucketLCPrepare 19613/head
authorCasey Bodley <cbodley@users.noreply.github.com>
Wed, 10 Jan 2018 16:39:21 +0000 (11:39 -0500)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2018 16:39:21 +0000 (11:39 -0500)
1  2 
src/rgw/rgw_lc.cc

index f01e687a5bc61cba73f1fe4d17bb9a2f31c700b2,3ac5813d93a5dd131e66488e06314eafd7b16616..da9552958b295a58ce928a479a7918f98d04e537
@@@ -237,13 -237,11 +237,14 @@@ int RGWLC::bucket_lc_prepare(int index
        pair<string, int > entry(iter->first, lc_uninitial);
        ret = cls_rgw_lc_set_entry(store->lc_pool_ctx, obj_names[index],  entry);
        if (ret < 0) {
-         dout(0) << "RGWLC::bucket_lc_prepare() failed to set entry on " << obj_names[index] << dendl;
+         ldout(cct, 0) << "RGWLC::bucket_lc_prepare() failed to set entry on "
+             << obj_names[index] << dendl;
 -        break;
 +        return ret;
        }
 -      marker = iter->first;
 +    }
 +
 +    if (!entries.empty()) {
 +      marker = std::move(entries.rbegin()->first);
      }
    } while (!entries.empty());