public synchronized void close() throws BackendException { try { dbindex.close(); } catch (IOException e) { throw new PermanentBackendException("unable to close store named " + name, e); } manager.unregisterStore(this); }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { _LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { _LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
@Override public boolean deleteIndex(long txnId, long indexId) throws IOException { _LocalTransaction txn = txn(txnId); // Close the index for now. After recovery is complete, trashed indexes are deleted in // a separate thread. Index ix; { LHashTable.ObjEntry<Index> entry = mIndexes.remove(indexId); if (entry == null) { ix = mDatabase.anyIndexById(txn, indexId); } else { ix = entry.value; } } if (ix != null) { ix.close(); } return true; }
ix.close(); try { mManager.notifyDrop(ix);
ix.close(); try { mManager.notifyDrop(ix);