| | |
| | | } |
| | | } |
| | | |
| | | void addEntry0(final Entry entry, final DN parentDN, final EntryID entryID, final IndexBuffer indexBuffer, |
| | | private void addEntry0(final Entry entry, final DN parentDN, final EntryID entryID, final IndexBuffer indexBuffer, |
| | | final ByteString encodedEntry, WriteableTransaction txn) throws DirectoryException |
| | | { |
| | | // Check that the parent entry exists. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Clear the contents for a tree from disk. |
| | | * |
| | | * @param txn a non null transaction |
| | | * @param tree The tree to clear. |
| | | * @throws StorageRuntimeException if a storage error occurs. |
| | | */ |
| | | void clearTree(WriteableTransaction txn, Tree tree) throws StorageRuntimeException |
| | | { |
| | | try |
| | | { |
| | | tree.delete(txn); |
| | | } |
| | | finally |
| | | { |
| | | tree.open(txn, true); |
| | | } |
| | | if(logger.isTraceEnabled()) |
| | | { |
| | | logger.trace("Cleared the tree %s", tree.getName()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Finds an existing entry whose DN is the closest ancestor of a given baseDN. |
| | | * |
| | | * @param baseDN the DN for which we are searching a matched DN. |