]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls: add exclusive ephemeral locks that auto-clean
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 12 Oct 2018 14:23:57 +0000 (10:23 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 1 Nov 2018 20:25:35 +0000 (16:25 -0400)
commit78667abe7db8eeb992ee891ca0387060dd80e5d1
tree3103682b05a127ad82c00101704d7af97777bb6c
parent1505b1ae092b409d20e7985f1096c3bc36776c5a
cls: add exclusive ephemeral locks that auto-clean

Add a new type of cls lock -- exclusive ephemeral for which the
object only exists to represent the lock and for which the object
should be deleted at unlock. This is to prevent the accumulation of
unneeded objects in the cluster by automatically cleaning them up.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit a289f2d8654cf4b865430465b87299d3618b41c8)
src/cls/lock/cls_lock.cc
src/cls/lock/cls_lock_client.cc
src/cls/lock/cls_lock_client.h
src/cls/lock/cls_lock_types.h
src/test/cls_lock/test_cls_lock.cc
src/test/librados_test_stub/LibradosTestStub.cc