mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
librbd: equality operator for managed_lock::Locker
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
f89857967e
commit
6d44511d70
@ -15,6 +15,13 @@ struct Locker {
|
||||
std::string cookie;
|
||||
std::string address;
|
||||
uint64_t handle;
|
||||
|
||||
inline bool operator==(const Locker &rhs) const {
|
||||
return (entity == rhs.entity &&
|
||||
cookie == rhs.cookie &&
|
||||
address == rhs.address &&
|
||||
handle == rhs.handle);
|
||||
}
|
||||
};
|
||||
|
||||
enum Mode {
|
||||
|
Loading…
Reference in New Issue
Block a user