]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls_lock: New assert_locked operation
authorJason Dillaman <dillaman@redhat.com>
Tue, 18 Nov 2014 08:56:41 +0000 (03:56 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 24 Jan 2015 23:05:49 +0000 (15:05 -0800)
commit71e84e048f73034cb126b9fe25e4571806c351c3
tree8d1e3c66fd71d77a7d95971c3dac87973f05f555
parent376c7e0f149b013154d6a7eeaa80a80449166508
cls_lock: New assert_locked operation

The assert_locked operation can be combined with other
RADOS ops to prevent an update to a locked object when
the client doesn't own the lock.  It will not attempt to
acquire the lock if the object is not currently locked.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
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_ops.cc
src/cls/lock/cls_lock_ops.h
src/test/cls_lock/test_cls_lock.cc
src/test/encoding/types.h