/** * Returns true if a shared lock can be granted for the given key. Caller must hold the * node latch which contains the key. * * @param locker optional locker */ final boolean isLockAvailable(Locker locker, byte[] key, int hash) { return mLockManager.isAvailable(locker, mId, key, hash); }
/** * Returns true if a shared lock can be granted for the given key. Caller must hold the * node latch which contains the key. * * @param locker optional locker */ final boolean isLockAvailable(Locker locker, byte[] key, int hash) { return mLockManager.isAvailable(locker, mId, key, hash); }
/** * Returns true if a shared lock can be granted for the given key. Caller must hold the * node latch which contains the key. * * @param locker optional locker */ final boolean isLockAvailable(Locker locker, byte[] key, int hash) { return mLockManager.isAvailable(locker, mId, key, hash); }
} else { if ((local != null && local.lockMode() != LockMode.READ_COMMITTED) || mLockManager.isAvailable (local, mId, key, keyHash = LockManager.hash(mId, key))) mLockManager.isAvailable(local, mId, key, keyHash = LockManager.hash(mId, key)))
} else { if ((local != null && local.lockMode() != LockMode.READ_COMMITTED) || mLockManager.isAvailable (local, mId, key, keyHash = LockManager.hash(mId, key))) mLockManager.isAvailable(local, mId, key, keyHash = LockManager.hash(mId, key)))
} else { if ((local != null && local.lockMode() != LockMode.READ_COMMITTED) || mLockManager.isAvailable (local, mId, key, keyHash = LockManager.hash(mId, key))) mLockManager.isAvailable(local, mId, key, keyHash = LockManager.hash(mId, key)))
mLockManager.isAvailable(local, mId, key, keyHash = LockManager.hash(mId, key)))