public void unload() throws IOException, InterruptedException { this.indexLock.writeLock().lock(); try { if( pageFile != null && pageFile.isLoaded() ) { metadata.state = CLOSED_STATE; metadata.firstInProgressTransactionLocation = getInProgressTxLocationRange()[0]; if (metadata.page != null) { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { tx.store(metadata.page, metadataMarshaller, true); } }); } } } finally { this.indexLock.writeLock().unlock(); } close(); }
public void unload() throws IOException, InterruptedException { this.indexLock.writeLock().lock(); try { if( pageFile != null && pageFile.isLoaded() ) { metadata.state = CLOSED_STATE; metadata.firstInProgressTransactionLocation = getFirstInProgressTxLocation(); pageFile.tx().execute(new Transaction.Closure<IOException>() { public void execute(Transaction tx) throws IOException { tx.store(metadata.page, metadataMarshaller, true); } }); } }finally { this.indexLock.writeLock().unlock(); } close(); }
public void unload() throws IOException, InterruptedException { this.indexLock.writeLock().lock(); try { if( pageFile != null && pageFile.isLoaded() ) { metadata.state = CLOSED_STATE; metadata.firstInProgressTransactionLocation = getInProgressTxLocationRange()[0]; if (metadata.page != null) { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { tx.store(metadata.page, metadataMarshaller, true); } }); } } } finally { this.indexLock.writeLock().unlock(); } close(); }
public void unload() throws IOException, InterruptedException { this.indexLock.writeLock().lock(); try { if( pageFile != null && pageFile.isLoaded() ) { metadata.state = CLOSED_STATE; metadata.firstInProgressTransactionLocation = getInProgressTxLocationRange()[0]; if (metadata.page != null) { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { tx.store(metadata.page, metadataMarshaller, true); } }); } } } finally { this.indexLock.writeLock().unlock(); } close(); }
public void unload() throws IOException, InterruptedException { this.indexLock.writeLock().lock(); try { if( pageFile != null && pageFile.isLoaded() ) { metadata.state = CLOSED_STATE; metadata.firstInProgressTransactionLocation = getInProgressTxLocationRange()[0]; if (metadata.page != null) { pageFile.tx().execute(new Transaction.Closure<IOException>() { @Override public void execute(Transaction tx) throws IOException { tx.store(metadata.page, metadataMarshaller, true); } }); } } } finally { this.indexLock.writeLock().unlock(); } close(); }