375376377378379380381382383384385
// now check if gc mode is GC_SYNCHRONOUS. If it is // remove the log file if (_gcMode == GC_SYNCHRONOUS) { try { log.destroy(); } catch (TransactionLogException exception) { exception.printStackTrace(); } } }
451452453454455456457458459460461
while (copy.size() > 0) { TransactionLog log = (TransactionLog) copy.first(); copy.remove(log); if (log.canGarbageCollect()) { // destroy the log log.destroy(); // remove it from the log cache synchronized (_logs) { _logs.remove(log); }