/** 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 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); } } } }