mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
librbd: add ManagedLock destroy method (useful for mock tests)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
c9afb1d459
commit
385c2e4d11
@ -39,6 +39,9 @@ public:
|
||||
return new ManagedLock(ioctx, work_queue, oid, watcher, mode,
|
||||
blacklist_on_break_lock, blacklist_expire_seconds);
|
||||
}
|
||||
void destroy() {
|
||||
delete this;
|
||||
}
|
||||
|
||||
ManagedLock(librados::IoCtx& ioctx, ContextWQ *work_queue,
|
||||
const std::string& oid, Watcher *watcher,
|
||||
|
Loading…
Reference in New Issue
Block a user