]> git-server-git.apps.pok.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>
Wed, 24 Oct 2018 21:52:37 +0000 (17:52 -0400)
commit8cebffa1d8ad4df6fdae4e10e782aad0753545ce
tree655a8e1047c16e90d6e510aff9ae49f2f2298b96
parent479c90993cc80b140af010a72ff9a34ecb7b3b32
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>
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