LLVM on OS X considers this == operator with an int
ambiguous: compare with an explicit MutationRef()
instead.
Signed-off-by: John Spray <john.spray@redhat.com>
}
bool can_xlock_local() const {
- return !is_wrlocked() && (get_xlock_by() == 0);
+ return !is_wrlocked() && (get_xlock_by() == MutationRef());
}
bool can_wrlock() const {
// xlock
void get_xlock(MutationRef who, client_t client) {
- assert(get_xlock_by() == 0);
+ assert(get_xlock_by() == MutationRef());
assert(state == LOCK_XLOCK || is_locallock() ||
state == LOCK_LOCK /* if we are a slave */);
parent->get(MDSCacheObject::PIN_LOCK);