1 9 package org.ozoneDB.core; 10 11 import org.ozoneDB.util.LogWriter; 12 13 14 18 public abstract class AbstractLock implements Lock { 19 20 21 public void checkDeadlock( Transaction ta ) throws TransactionError { 22 if (ta.isDeadlocked()) { 23 if (false) { 24 ta.env.logWriter.newEntry( this, ta + " deadlock detected...", LogWriter.DEBUG ); 25 } 26 throw new TransactionError( "Deadlock detected.", TransactionError.DEADLOCK ); 27 } 28 } 29 30 } 31 | Popular Tags |