protected void peerReleasingLock (PeerNode peer, NodeObject.Lock lock)
    {
        // refuse to ratify if we don't believe they own the lock
        String owner = queryLock(lock);
        if (!peer.getNodeName().equals(owner)) {
            log.warning("Refusing to ratify lock release.", "lock", lock,
                "node", peer.getNodeName(), "owner", owner);
            return;
        }

        // check for an existing handler
        LockHandler handler = _locks.get(lock);
        if (handler == null) {
            createLockHandler(peer, lock, false);
        } else {
            log.warning("Received request to release resolving lock",
               "node", peer.getNodeName(), "handler", handler);
        }
    }
protected void peerReleasingLock ( PeerNode peer , NodeObject . Lock lock ) { String owner = queryLock ( lock ) ; if ( ! peer . getNodeName ( ) . equals ( owner ) ) { log . warning ( "Refusing to ratify lock release." , "lock" , lock , "node" , peer . getNodeName ( ) , "owner" , owner ) ; return ; } LockHandler handler = _locks . get ( lock ) ; if ( handler == null ) { createLockHandler ( peer , lock , false ) ; } else { log . warning ( "Received request to release resolving lock" , "node" , peer . getNodeName ( ) , "handler" , handler ) ; } }
Called when a peer announces its intention to release a lock.