750751752753754755756757758759760
try { if (! removeRead(rootBlock, keyBuffer, keyOffset, keyLength)) { removeWrite(rootBlock, keyBuffer, keyOffset, keyLength); } } finally { rootBlock.free(); } } catch (IOException e) { throw new SQLExceptionWrapper(e.toString(), e); } }
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();
799800801802803804805806807808809
if (removeRead(childBlock, keyBuffer, keyOffset, keyLength)) return true; else return removeWrite(childBlock, keyBuffer, keyOffset, keyLength); } finally { childBlock.free(); } } finally { blockLock.unlockRead(); } }
861862863864865866867868869870871
childBlock.deallocate(); } validate(block); } finally { childBlock.free(); } } return _minN <= getLength(buffer); } finally {
950951952953954955956957958959960
} } finally { leftLock.unlockReadAndWrite(); } } finally { leftBlock.free(); } } // If the right block has extra data, shift the first right item // to the block
998999100010011002100310041005100610071008
} } finally { blockLock.unlockReadAndWrite(); } } finally { rightBlock.free(); } } if (parentLength < 2) return false;
10541055105610571058105910601061106210631064
} } finally { leftLock.unlockReadAndWrite(); } } finally { leftBlock.free(); } } // If the right block has space, merge with it if (rightBlockId > 0) {
11081109111011111112111311141115111611171118
} } finally { blockLock.unlockReadAndWrite(); } } finally { rightBlock.free(); } } // XXX: error
18541855185618571858185918601861186218631864
keys.add(_keyCompare.toString(buffer, offset + i * tupleSize + PTR_SIZE, tupleSize - PTR_SIZE)); } block.free(); return keys; } /**
426427428429430431432433434435436
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",