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

Jean-Noel Rouvignac
26.01.2015 c5d246665c8d72aa524009a12af556f8fba76fe4
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
@@ -96,7 +96,7 @@
   */
  void put(final WriteableTransaction txn, DN dn, final EntryID entryID) throws StorageRuntimeException
  {
    txn.put(getName(), toKey(dn), entryID.toByteString());
    txn.put(getName(), toKey(dn), toValue(entryID));
  }
  boolean insert(final WriteableTransaction txn, DN dn, final EntryID entryID) throws StorageRuntimeException
@@ -112,7 +112,7 @@
          return oldEntryID;
        }
        // it did not exist before, insert the new value
        return entryID.toByteString();
        return toValue(entryID);
      }
    });
  }
@@ -122,6 +122,12 @@
    return dnToDNKey(dn, baseDN.size());
  }
  ByteString toValue(final EntryID entryID)
  {
    // TODO JNR do we want to use compacted longs?
    return entryID.toByteString();
  }
  /**
   * Remove a record from the DN tree.
   * @param txn a non null transaction