| | |
| | | */ |
| | | private void iterateID2Entry(ReadableStorage txn) throws StorageRuntimeException |
| | | { |
| | | Cursor cursor = id2entry.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(id2entry.getName()); |
| | | try |
| | | { |
| | | long storedEntryCount = id2entry.getRecordCount(txn); |
| | |
| | | */ |
| | | private void iterateDN2ID(ReadableStorage txn) throws StorageRuntimeException |
| | | { |
| | | Cursor cursor = dn2id.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(dn2id.getName()); |
| | | try |
| | | { |
| | | while (cursor.next()) |
| | |
| | | Entry entry; |
| | | try |
| | | { |
| | | entry = id2entry.get(txn, entryID, false); |
| | | entry = id2entry.get(txn, entryID); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | */ |
| | | private void iterateID2Children(ReadableStorage txn) throws StorageRuntimeException |
| | | { |
| | | Cursor cursor = id2c.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(id2c.getName()); |
| | | try |
| | | { |
| | | while (cursor.next()) |
| | |
| | | Entry entry; |
| | | try |
| | | { |
| | | entry = id2entry.get(txn, entryID, false); |
| | | entry = id2entry.get(txn, entryID); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | Entry childEntry; |
| | | try |
| | | { |
| | | childEntry = id2entry.get(txn, id, false); |
| | | childEntry = id2entry.get(txn, id); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | */ |
| | | private void iterateID2Subtree(ReadableStorage txn) throws StorageRuntimeException |
| | | { |
| | | Cursor cursor = id2s.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(id2s.getName()); |
| | | try |
| | | { |
| | | while (cursor.next()) |
| | |
| | | Entry entry; |
| | | try |
| | | { |
| | | entry = id2entry.get(txn, entryID, false); |
| | | entry = id2entry.get(txn, entryID); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | Entry subordEntry; |
| | | try |
| | | { |
| | | subordEntry = id2entry.get(txn, id, false); |
| | | subordEntry = id2entry.get(txn, id); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | Cursor cursor = vlvIndex.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(vlvIndex.getName()); |
| | | try |
| | | { |
| | | SortValues lastValues = null; |
| | |
| | | EntryID id = new EntryID(values.getEntryID()); |
| | | try |
| | | { |
| | | entry = id2entry.get(txn, id, false); |
| | | entry = id2entry.get(txn, id); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | Cursor cursor = index.openCursor(txn); |
| | | Cursor cursor = txn.openCursor(index.getName()); |
| | | try |
| | | { |
| | | while (cursor.next()) |
| | |
| | | Entry entry; |
| | | try |
| | | { |
| | | entry = id2entry.get(txn, id, false); |
| | | entry = id2entry.get(txn, id); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | // Check the ID is in dn2id with the correct DN. |
| | | try |
| | | { |
| | | EntryID id = dn2id.get(txn, dn, false); |
| | | EntryID id = dn2id.get(txn, dn); |
| | | if (id == null) |
| | | { |
| | | if (logger.isTraceEnabled()) |
| | |
| | | { |
| | | try |
| | | { |
| | | EntryID id = dn2id.get(txn, parentDN, false); |
| | | EntryID id = dn2id.get(txn, parentDN); |
| | | if (id == null) |
| | | { |
| | | if (logger.isTraceEnabled()) |
| | |
| | | EntryID parentID = null; |
| | | try |
| | | { |
| | | parentID = dn2id.get(txn, parentDN, false); |
| | | parentID = dn2id.get(txn, parentDN); |
| | | if (parentID == null) |
| | | { |
| | | if (logger.isTraceEnabled()) |
| | |
| | | EntryID id = null; |
| | | try |
| | | { |
| | | id = dn2id.get(txn, dn, false); |
| | | id = dn2id.get(txn, dn); |
| | | if (id == null) |
| | | { |
| | | if (logger.isTraceEnabled()) |