]> 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)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 1 Nov 2018 20:25:35 +0000 (16:25 -0400)
commit1505b1ae092b409d20e7985f1096c3bc36776c5a
treeab348e61c2507aa92b40825837bc835e7918143d
parentc76797805622d0b9ef1df3a5791c282529494c79
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