librbd: equality operator for managed_lock::Locker

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
Mykola Golub 2017-01-30 15:52:31 +01:00
parent f89857967e
commit 6d44511d70

View File

@ -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 {