/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if ( ! inUse.isEmpty() ) { showList( inUse.values().iterator() ); throw new Error( I18n.err( I18n.ERR_557, inUse.size() ) ); } // System.out.println("rollback..."); dirty.clear(); txnMgr.synchronizeLogFromDisk(); if ( ! inTxn.isEmpty() ) { showList( inTxn.values().iterator() ); throw new Error( I18n.err( I18n.ERR_558, inTxn.size() ) ); }; }
/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if ( !inUse.isEmpty() ) { showList( inUse.values().iterator() ); throw new Error( I18n.err( I18n.ERR_557, inUse.size() ) ); } // System.out.println("rollback..."); dirty.clear(); if ( !transactionsDisabled ) { getTxnMgr().synchronizeLogFromDisk(); } if ( !inTxn.isEmpty() ) { showList( inTxn.values().iterator() ); throw new Error( I18n.err( I18n.ERR_558, inTxn.size() ) ); } }
/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if ( ! inUse.isEmpty() ) { showList( inUse.values().iterator() ); throw new Error( I18n.err( I18n.ERR_557, inUse.size() ) ); } // System.out.println("rollback..."); dirty.clear(); if ( ! transactionsDisabled ) { getTxnMgr().synchronizeLogFromDisk(); } if ( ! inTxn.isEmpty() ) { showList( inTxn.values().iterator() ); throw new Error( I18n.err( I18n.ERR_558, inTxn.size() ) ); } }
/** * Rollback the current transaction by discarding all dirty buffers */ void rollback() throws IOException { // debugging... if (!inUse.isEmpty()) { showList(inUse.valuesIterator()); throw new Error("in use list not empty at rollback time (" + inUse.size() + ")"); } // System.out.println("rollback..."); dirty.clear(); txnMgr.synchronizeLogFromDisk(); if (!inTxn.isEmpty()) { showList(inTxn.valuesIterator()); throw new Error("in txn list not empty at rollback time (" + inTxn.size() + ")"); }; }