]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rgw_reshard: Don't dump RGWBucketReshard JSON in process_single_logshard
authorMark Nelson <mnelson@redhat.com>
Mon, 26 Aug 2019 11:16:31 +0000 (07:16 -0400)
committerMark Nelson <mnelson@redhat.com>
Mon, 26 Aug 2019 15:27:36 +0000 (11:27 -0400)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/rgw/rgw_reshard.cc

index 5ff1e6309aeeff6d2d7b87481ec0e570658499c0..a9a1b9f2b945eb383cb3c549fc9ed883ff68deb6 100644 (file)
@@ -993,11 +993,8 @@ int RGWReshard::process_single_logshard(int logshard_num)
        }
 
        RGWBucketReshard br(store, bucket_info, attrs, nullptr);
-
-       Formatter* formatter = new JSONFormatter(false);
-       auto formatter_ptr = std::unique_ptr<Formatter>(formatter);
-       ret = br.execute(entry.new_num_shards, max_entries, true, nullptr,
-                        formatter, this);
+       ret = br.execute(entry.new_num_shards, max_entries, false, nullptr,
+                        nullptr, this);
        if (ret < 0) {
          ldout (store->ctx(), 0) <<  __func__ <<
            "ERROR in reshard_bucket " << entry.bucket_name << ":" <<