| | |
| | | if (ldifImportConfig.appendToExistingData() && |
| | | ldifImportConfig.replaceExistingEntries()) { |
| | | Entry existingEntry = element.getExistingEntry(); |
| | | processIndexesEntryDelete(element, existingEntry, entryID, txn); |
| | | if(existingEntry != null) { |
| | | processIndexesEntryDelete(element, existingEntry, entryID, txn); |
| | | } |
| | | } |
| | | Map<AttributeType, AttributeIndex> attrIndexMap = |
| | | context.getAttrIndexMap(); |
| | |
| | | if (ldifImportConfig.appendToExistingData() && |
| | | ldifImportConfig.replaceExistingEntries()) { |
| | | Entry existingEntry = element.getExistingEntry(); |
| | | dn2uri.replaceEntry(txn, existingEntry, entry); |
| | | if(existingEntry != null) { |
| | | dn2uri.replaceEntry(txn, existingEntry, entry); |
| | | } |
| | | } else { |
| | | ret= dn2uri.addEntry(txn, entry); |
| | | } |