/** * Increments transaction count for this block, to signal that this * block is in the log but not yet in the data recordFile. The method also * takes a snapshot so that the data may be modified in new transactions. */ synchronized void incrementTransactionCount() { transactionCount++; // @fix me ( alex ) setClean(); }
/** * Increments transaction count for this block, to signal that this * block is in the log but not yet in the data file. The method also * takes a snapshot so that the data may be modified in new transactions. */ synchronized void incrementTransactionCount() { transactionCount++; // @fix me ( alex ) setClean(); }
/** Set clean flag on the blocks. */ private void setClean(ArrayList<BlockIo> blocks) throws IOException { for (BlockIo cur : blocks) { cur.setClean(); } }
/** * Increments transaction count for this block, to signal that this * block is in the log but not yet in the data file. The method also * takes a snapshot so that the data may be modified in new transactions. */ synchronized void incrementTransactionCount() { transactionCount++; // @fixme(alex) setClean(); }
/** Set clean flag on the blocks. */ private void setClean( ArrayList blocks ) throws IOException { for ( Iterator k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = ( BlockIo ) k.next(); cur.setClean(); } }
/** Set clean flag on the blocks. */ private void setClean(List<BlockIo> blocks) throws IOException { for (Iterator<BlockIo> k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = k.next(); cur.setClean(); } }
/** Set clean flag on the blocks. */ private void setClean(ArrayList blocks) throws IOException { for (Iterator k = blocks.iterator(); k.hasNext(); ) { BlockIo cur = (BlockIo) k.next(); cur.setClean(); } }
node.setClean(); return node;
node.setClean(); return node;
file.seek( offset ); file.write( node.getData() ); node.setClean(); free.add( node );
file.seek( offset ); file.write( node.getData() ); node.setClean(); free.add( node );
blockIo.setClean(); free.add( blockIo );
file.position(offset % MAX_FILE_SIZE); file.write(ByteBuffer.wrap(node.getData())); node.setClean(); free.put(node.getBlockId(),node);
node.setClean(); return node;