mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
18.08.2015 24ada0a1d9bff142148e014aa4b18790ce8489e1
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
@@ -1611,6 +1611,17 @@
            int subordinateEntriesDeleted = 0;
            // Since everything under targetDN will be deleted, we only have to decrement the counter of targetDN's
            // parent. Other counters will be removed in deleteEntry()
            final DN parentDN = getParentWithinBase(entryDN);
            if (parentDN != null) {
              final EntryID parentID = dn2id.get(txn, parentDN);
              if ( parentID == null ) {
                throw new StorageRuntimeException(ERR_MISSING_DN2ID_RECORD.get(parentDN).toString());
              }
              id2childrenCount.addDelta(txn, parentID, -1);
            }
            Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName());
            try
            {