From 4c5bb1673a6e5ce2fe38f6dc22b074787826b8fe Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Thu, 09 Jun 2016 10:56:28 +0000
Subject: [PATCH] OPENDJ-3087 New baseDNs should be initialized with the most recent backend configuration
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
index da992a0..db0f99d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java
@@ -68,7 +68,7 @@
/** The ID of the backend to which this entry root container belongs. */
private final String backendId;
/** The backend configuration. */
- private final PluggableBackendCfg config;
+ private volatile PluggableBackendCfg config;
/** The monitor for this backend. */
private BackendMonitor monitor;
@@ -450,8 +450,9 @@
@Override
public ConfigChangeResult applyConfigurationChange(PluggableBackendCfg configuration)
{
- getMonitorProvider().enableFilterUseStats(configuration.isIndexFilterAnalyzerEnabled());
- getMonitorProvider().setMaxEntries(configuration.getIndexFilterAnalyzerMaxFilters());
+ config = configuration;
+ getMonitorProvider().enableFilterUseStats(config.isIndexFilterAnalyzerEnabled());
+ getMonitorProvider().setMaxEntries(config.getIndexFilterAnalyzerMaxFilters());
return new ConfigChangeResult();
}
--
Gitblit v1.10.0