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/pluggable/BackendImpl.java |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
index a2cd815..e358851 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java
@@ -693,19 +693,16 @@
     return new RootContainer(this, cfg).importLDIF(importConfig);
   }
 
-  /**
-   * 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
@@ -719,7 +716,7 @@
       }
 
       VerifyJob verifyJob = new VerifyJob(verifyConfig);
-      return verifyJob.verifyBackend(rootContainer, statEntry);
+      return verifyJob.verifyBackend(rootContainer);
     }
     catch (StorageRuntimeException e)
     {

--
Gitblit v1.10.0