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

Nicolas Capponi
08.55.2014 c3ddd7489abd06155b872cc23cef3575e2ee1b9a
opendj3-server-dev/src/server/org/opends/server/extensions/FileSystemEntryCache.java
@@ -619,7 +619,7 @@
      // TODO: Cache the buffer?
      ByteStringBuilder buffer = new ByteStringBuilder();
      entry.encode(buffer, encodeConfig);
      putEntryToDB(entry.getDN().toNormalizedString(),
      putEntryToDB(entry.getName().toNormalizedString(),
        backend, entryID, buffer);
    } catch (Exception e) {
      if (debugEnabled()) {
@@ -639,7 +639,7 @@
      // See if the entry already exists in the cache. If it does, then we
      // will fail and not actually store the entry.
      if (entryCacheIndex.dnMap.containsKey(
        entry.getDN().toNormalizedString())) {
        entry.getName().toNormalizedString())) {
        return false;
      }
    } finally {
@@ -649,7 +649,7 @@
      // TODO: Cache the buffer?
      ByteStringBuilder buffer = new ByteStringBuilder();
      entry.encode(buffer, encodeConfig);
      return putEntryToDB(entry.getDN().toNormalizedString(),
      return putEntryToDB(entry.getName().toNormalizedString(),
        backend, entryID, buffer);
    } catch (Exception e) {
      if (debugEnabled()) {