]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: feature -- log successful bucket resharding events 25510/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Dec 2018 18:53:49 +0000 (13:53 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Dec 2018 19:21:27 +0000 (14:21 -0500)
This change adds a single log entry at level 1 to indicate when a
bucket resharding successfully completes.

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

index 69931ac22fc5ccc24172b706c57d4d814e4743ad..657b5ab5066050a9d8b406b4d81278bf385eceeb 100644 (file)
@@ -741,6 +741,11 @@ int RGWBucketReshard::execute(int num_shards, int max_op_entries,
       "\"created after successful resharding with error " << ret << dendl;
   }
 
+  ldout(store->ctx(), 1) << __func__ <<
+    " INFO: reshard of bucket \"" << bucket_info.bucket.name << "\" from \"" <<
+    bucket_info.bucket.get_key() << "\" to \"" <<
+    new_bucket_info.bucket.get_key() << "\" completed successfully" << dendl;
+
   return 0;
 
 error_out: