]> 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)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 29 Nov 2018 12:03:59 +0000 (13:03 +0100)
commit998a9d2e275c5ad917687ab8eb8a71c092e06502
tree53b74ed71ab4611c03d7431c8fdbc98736d9edb8
parentc90493fecfacadae6c5bdcba62adcd8e9277f002
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