]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: feature -- log successful bucket resharding events 25740/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Dec 2018 18:53:49 +0000 (13:53 -0500)
committerPrashant D <pdhange@redhat.com>
Tue, 1 Jan 2019 23:28:53 +0000 (18:28 -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>
(cherry picked from commit 1b9c762b7963cc91bccb79075933434bad7735db)

Conflicts:
src/rgw/rgw_reshard.cc : Resolved in RGWBucketReshard::execute

src/rgw/rgw_reshard.cc

index a9f7d900e8b1a2ded09810cc319550fae42cf41b..b246384d0264443371847e248c496bfc5c2e96e1 100644 (file)
@@ -699,6 +699,11 @@ int RGWBucketReshard::execute(int num_shards, int max_op_entries,
     return ret;
   }
 
+  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;
+  
   reshard_lock.unlock();
 
   return 0;