11341135113611371138113911401141114211431144
owners.add(lock.nOwners()); /* Go through all the owners for a lock. */ for (LockInfo info : lock.getOwnersClone()) { if (info.getLockType().isWriteLock()) { writeLocks.increment(); } else { readLocks.increment(); } } }
359360361362363364365366367368369
if (ownedLock != null) { Lock l = lockManager.lookupLock(ownedLock); if (l != null) { if (l.isOwnedWriteLock(this)) { nWriteLocks.increment(); } else { nReadLocks.increment(); } } }
370371372373374375376377378379380
if (ownedLockSet != null) { for (Long nid : ownedLockSet) { Lock l = lockManager.lookupLock(nid); if (l != null) { if (l.isOwnedWriteLock(this)) { nWriteLocks.increment(); } else { nReadLocks.increment(); } } }
405406407408409410411412413414415
416417418419420421422423424425426
11571158115911601161116211631164116511661167