821822823824825826827828829830831
{ byte []buffer = block.getBuffer(); long blockId = block.getBlockId(); Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { boolean isLeaf = isLeaf(buffer, block); if (isLeaf) {
912913914915916917918919920921922
try { byte []leftBuffer = leftBlock.getBuffer(); Lock leftLock = leftBlock.getLock(); leftLock.lockReadAndWrite(_timeout); try { int leftLength = getLength(leftBuffer); Lock blockLock = block.getLock();
918919920921922923924925926927928
try { int leftLength = getLength(leftBuffer); Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { if (_minN < leftLength) { validateEqualLeaf(buffer, leftBuffer, block, leftBlock);
963964965966967968969970971972973
try { byte []rightBuffer = rightBlock.getBuffer(); Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { Lock rightLock = rightBlock.getLock(); rightLock.lockReadAndWrite(_timeout);
967968969970971972973974975976977
Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { Lock rightLock = rightBlock.getLock(); rightLock.lockReadAndWrite(_timeout); try { int rightLength = getLength(rightBuffer); if (_minN < rightLength) {
10131014101510161017101810191020102110221023
10191020102110221023102410251026102710281029
try { int leftLength = getLength(leftBuffer); Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { int length = getLength(buffer); if (length + leftLength <= _n) {
10661067106810691070107110721073107410751076
10701071107210731074107510761077107810791080
Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(_timeout); try { Lock rightLock = rightBlock.getLock(); rightLock.lockReadAndWrite(_timeout); try { int length = getLength(buffer); int rightLength = getLength(rightBuffer);
756757758759760761762763764765766
private int allocateRow(Block block, Transaction xa) throws IOException, SQLException { Lock blockLock = block.getLock(); blockLock.lockReadAndWrite(xa.getTimeout()); try { block.read(); byte []buffer = block.getBuffer();