]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: renew resharding locks to prevent expiration
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 27 Sep 2018 17:31:57 +0000 (13:31 -0400)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 29 Nov 2018 12:03:59 +0000 (13:03 +0100)
commitc90493fecfacadae6c5bdcba62adcd8e9277f002
tree1c72603832a39c36fdd6e3306a56bae2d5483d2a
parentefb5848f8e149f8ac137ec715f1e7b07a756c9d8
rgw: renew resharding locks to prevent expiration

Fix lock expiration problem with resharding. The resharding process
will renew its bucket lock (and logshard lock if necessary) when half
the remaining time is left on the lock. If the lock is expired and
cannot renew the process fails and errors out appropriately.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 8cebffa1d8ad4df6fdae4e10e782aad0753545ce)
src/cls/lock/cls_lock_client.h
src/cls/lock/cls_lock_ops.h
src/cls/lock/cls_lock_types.h
src/rgw/rgw_admin.cc
src/rgw/rgw_reshard.cc
src/rgw/rgw_reshard.h