151152153154155156157158159160161
public void close() { if (_block != null) { Block block = _block; _block = null; block.free(); } } /** * Updates the buffer.
164165166167168169170171172173174
throws IOException { if (_block != null) { Block block = _block; _block = null; block.free(); } long addr; int blockCount = (int) (_offset / BlockStore.BLOCK_SIZE);
182183184185186187188189190191192
Block ptr = _store.readBlock(_store.addressToBlockId(ptrAddr)); addr = readLong(ptr.getBuffer(), 8 * (blockCount - INODE_DIRECT_BLOCKS)); ptr.free(); } _block = _store.readBlock(_store.addressToBlockId(addr)); _buffer = _block.getBuffer();
419420421422423424425426427428429
Block block = store.allocateBlock(); long blockAddr = BlockStore.blockIdToAddress(block.getBlockId()); block.free(); if (blockAddr == 0) { store.setCorrupted(true); throw new IllegalStateException(L.l("{0}: illegal block",
627628629630631632633634635636637
int charSublen = sublen / 2; Block block = store.allocateBlock(); long blockAddr = block.getBlockId(); block.free(); Block writeBlock = store.writeBlock(blockAddr, 0, buffer, offset, charSublen); xa.addUpdateBlock(writeBlock);
924925926927928929930931932933934
long indAddr = readLong(inode, inodeOffset + (DIRECT_BLOCKS + 1) * 8); if (indAddr == 0) { Block block = store.allocateBlock(); indAddr = block.getBlockId(); block.free(); writeLong(inode, inodeOffset + (DIRECT_BLOCKS + 1) * 8, indAddr); } int blockOffset = 8 * (blockCount - DIRECT_BLOCKS);
956957958959960961962963964965966
if (dblIndAddr == 0) { Block block = store.allocateBlock(); dblIndAddr = BlockStore.blockIdToAddress(block.getBlockId()); block.free(); Block writeBlock = store.writeBlockLong(indAddr, dblBlockIndex, dblIndAddr); xa.addUpdateBlock(writeBlock); }
172173174175176177178179180181182
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = 0; _rowOffset = Integer.MAX_VALUE / 2; _queryContext = null;
262263264265266267268269270271272
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = _table.firstRowBlock(_blockId + Table.BLOCK_SIZE); if (_blockId < 0) {
319320321322323324325326327328329
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _block = _xa.readBlock(_table, _blockId); _buffer = _block.getBuffer(); }