From b0420c460bca595f5cf0cb779184a1f23108195a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 14 Jan 2015 15:53:18 +0000
Subject: [PATCH] OPENDJ-1724 (CR-5789) Persistit: add support for verify-indexes
---
opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackendImpl.java | 28 ++++++++++++----------------
1 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackendImpl.java b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackendImpl.java
index c94b73d..0b38f29 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackendImpl.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -57,6 +57,7 @@
import org.opends.server.api.DiskSpaceMonitorHandler;
import org.opends.server.api.MonitorProvider;
import org.opends.server.backends.jeb.importLDIF.Importer;
+import org.opends.server.backends.pluggable.VerifyConfig;
import org.opends.server.core.*;
import org.opends.server.extensions.DiskSpaceMonitor;
import org.opends.server.types.*;
@@ -818,19 +819,16 @@
return envConfig;
}
- /**
- * Verify the integrity of the backend instance.
- * @param verifyConfig The verify configuration.
- * @param statEntry Optional entry to save stats into.
- * @return The error count.
- * @throws ConfigException If an unrecoverable problem arises during
- * initialization.
- * @throws InitializationException If a problem occurs during initialization
- * that is not related to the server
- * configuration.
- * @throws DirectoryException If a Directory Server error occurs.
- */
- public long verifyBackend(VerifyConfig verifyConfig, Entry statEntry)
+ /** {@inheritDoc} */
+ @Override
+ public boolean supportsIndexing()
+ {
+ return true;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public long verifyBackend(VerifyConfig verifyConfig)
throws InitializationException, ConfigException, DirectoryException
{
// If the backend already has the root container open, we must use the same
@@ -844,7 +842,7 @@
}
VerifyJob verifyJob = new VerifyJob(verifyConfig);
- return verifyJob.verifyBackend(rootContainer, statEntry);
+ return verifyJob.verifyBackend(rootContainer);
}
catch (DatabaseException e)
{
@@ -1030,7 +1028,6 @@
public ConfigChangeResult applyConfigurationChange(LocalDBBackendCfg newCfg)
{
final ConfigChangeResult ccr = new ConfigChangeResult();
-
try
{
if(rootContainer != null)
@@ -1064,7 +1061,6 @@
ccr.addMessage(LocalizableMessage.raw(stackTraceToSingleLineString(e)));
ccr.setResultCode(DirectoryServer.getServerErrorResultCode());
}
-
return ccr;
}
--
Gitblit v1.10.0