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

Nicolas Capponi
19.50.2016 d035014ad8b0d2d4a0465f6c6dfcfa8e03f7ab84
opendj-server-legacy/src/main/java/org/opends/server/api/CompressedSchema.java
@@ -95,7 +95,7 @@
  /** Schema used to build the compressed information. */
  @GuardedBy("lock")
  private Schema schemaNG;
  private Schema schema;
  @GuardedBy("lock")
  private Mappings mappings = new Mappings();
@@ -129,15 +129,15 @@
    boolean shared = true;
    try
    {
      Schema currentSchema = serverContext.getSchemaNG();
      if (schemaNG != currentSchema)
      Schema currentSchema = serverContext.getSchema();
      if (schema != currentSchema)
      {
        sharedLock.unlock();
        exclusiveLock.lock();
        shared = false;
        currentSchema = serverContext.getSchemaNG();
        if (schemaNG != currentSchema)
        currentSchema = serverContext.getSchema();
        if (schema != currentSchema)
        {
          // build new maps from existing ones
          Mappings newMappings = new Mappings(mappings.adEncodeMap.size(), mappings.ocEncodeMap.size());
@@ -145,7 +145,7 @@
          reloadObjectClassesMap(mappings, newMappings);
          mappings = newMappings;
          schemaNG = currentSchema;
          schema = currentSchema;
        }
      }
      return mappings;