| | |
| | | */ |
| | | EntryID getHighestEntryID(ReadableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | Cursor cursor = txn.openCursor(id2entry.getName()); |
| | | Cursor<ByteString, ByteString> cursor = txn.openCursor(id2entry.getName()); |
| | | try |
| | | { |
| | | // Position a cursor on the last data item, and the key should give the highest ID. |
| | |
| | | |
| | | try |
| | | { |
| | | final Cursor cursor = txn.openCursor(dn2id.getName()); |
| | | final Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName()); |
| | | try |
| | | { |
| | | // Initialize the cursor very close to the starting value. |
| | |
| | | |
| | | int subordinateEntriesDeleted = 0; |
| | | |
| | | Cursor cursor = txn.openCursor(dn2id.getName()); |
| | | Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName()); |
| | | try |
| | | { |
| | | // Step forward until we pass the ending value. |
| | |
| | | suffix.append((byte) 0x00); |
| | | end.append((byte) 0x01); |
| | | |
| | | Cursor cursor = txn.openCursor(dn2id.getName()); |
| | | Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName()); |
| | | try |
| | | { |
| | | |
| | |
| | | database.delete(txn); |
| | | if(database instanceof Index) |
| | | { |
| | | state.removeIndexTrustState(txn, database); |
| | | state.deleteRecord(txn, database.getName()); |
| | | } |
| | | } |
| | | |
| | |
| | | for (Index index : attributeIndex.getAllIndexes()) |
| | | { |
| | | index.delete(txn); |
| | | state.removeIndexTrustState(txn, index); |
| | | state.deleteRecord(txn, index.getName()); |
| | | } |
| | | } |
| | | |