return executed.size() > 0;
};
private synchronized boolean attempt_change( TransactionCoordinator tc, lock_mode set_mode, lock_mode reset_mode ) throws LockNotHeld {
TransactionLocks current_locks = (TransactionLocks)locks.get( tc );
if( current_locks == null || !current_locks.is_held( reset_mode ) ){
throw new LockNotHeld();
}
if( attempt_lock( tc, set_mode ) ){
current_locks.unlock( reset_mode );
return true;
}