/** Discards the indicated blocks and notify the owner. */ private void discardBlocks(ArrayList blocks) throws IOException { for (Iterator k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = (BlockIo) k.next(); cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, false); } } }
/** Discards the indicated blocks and notify the owner. */ private void discardBlocks( ArrayList blocks ) throws IOException { for ( Iterator k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = ( BlockIo ) k.next(); cur.decrementTransactionCount(); if ( !cur.isInTransaction() ) { owner.releaseFromTransaction( cur, false ); } } }
/** Discards the indicated blocks and notify the owner. */ private void discardBlocks(List<BlockIo> blocks) throws IOException { for (Iterator<BlockIo> k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = k.next(); cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, false); } } }
/** Discards the indicated blocks and notify the owner. */ private void discardBlocks(ArrayList<BlockIo> blocks) throws IOException { for (BlockIo cur:blocks) { cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, false); } } }
/** Synchronizes the indicated blocks with the owner. */ private void synchronizeBlocks(Iterator blockIterator, boolean fromCore) throws IOException { // write block vector elements to the data file. while ( blockIterator.hasNext() ) { BlockIo cur = (BlockIo)blockIterator.next(); owner.synch(cur); if (fromCore) { cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, true); } } } }
/** Synchronizes the indicated blocks with the owner. */ private void synchronizeBlocks(Iterator<BlockIo> blockIterator, boolean fromCore) throws IOException { // write block vector elements to the data file. while ( blockIterator.hasNext() ) { BlockIo cur = blockIterator.next(); owner.sync(cur); if (fromCore) { cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, true); } } } }
/** Synchronizes the indicated blocks with the owner. */ private void synchronizeBlocks( Iterator blockIterator, boolean fromCore ) throws IOException { // write block vector elements to the data file. while ( blockIterator.hasNext() ) { BlockIo cur = ( BlockIo ) blockIterator.next(); owner.synch( cur ); if ( fromCore ) { cur.decrementTransactionCount(); if ( !cur.isInTransaction() ) { owner.releaseFromTransaction( cur, true ); } } } }
/** Synchronizes the indicated blocks with the owner. */ private void synchronizeBlocks(Iterable<BlockIo> blocks, boolean fromCore) throws IOException { // write block vector elements to the data file. for(BlockIo cur:blocks){ owner.synch(cur); if (fromCore) { cur.decrementTransactionCount(); if (!cur.isInTransaction()) { owner.releaseFromTransaction(cur, true); } } } }