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

ludovicp
29.35.2010 7c30dbb5403772b323df3ad907d9ed15d23b5aee
opends/src/server/org/opends/server/extensions/DefaultEntryCache.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2010 Sun Microsystems, Inc.
 */
package org.opends.server.extensions;
import java.lang.reflect.Method;
@@ -156,7 +156,7 @@
      cacheMisses.getAndIncrement();
    }
    return entry;
    return (entry != null ? entry.duplicate(true) : null);
  }
@@ -183,7 +183,7 @@
      cacheMisses.getAndIncrement();
    }
    return entry;
    return (entry != null ? entry.duplicate(true) : null);
  }
@@ -206,7 +206,7 @@
      cacheMisses.getAndIncrement();
    }
    return entry;
    return (entry != null ? entry.duplicate(true) : null);
  }
@@ -258,7 +258,8 @@
      // The first cache in the order which can take this entry
      // gets it.
      if (entryCache.filtersAllowCaching(entry)) {
        entryCache.putEntry(entry, backend, entryID);
        entryCache.putEntry(entry.duplicate(false),
                backend, entryID);
        break;
      }
    }
@@ -275,7 +276,8 @@
      // The first cache in the order which can take this entry
      // gets it.
      if (entryCache.filtersAllowCaching(entry)) {
        return entryCache.putEntryIfAbsent(entry, backend, entryID);
        return entryCache.putEntryIfAbsent(entry.duplicate(false),
                backend, entryID);
      }
    }