From 339ab397cebba87b904e4a3af1ea29e2c8a44ed5 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 13 Jul 2007 09:09:26 +0000
Subject: [PATCH] fix for issue #1897 (verif-index , rebuild-index return 0 in case of errors): return code '1' is now returned in case of error. In addition to that, the following argument has been add in order to get the number of errors found by verify-index: "--countErrors"
---
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/VerifyJob.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/VerifyJob.java b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/VerifyJob.java
index b7caebe..2b74703 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/VerifyJob.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/VerifyJob.java
@@ -197,10 +197,11 @@
*
* @param rootContainer The root container that holds the entries to verify.
* @param statEntry Optional statistics entry.
+ * @return The error count.
* @throws DatabaseException If an error occurs in the JE database.
* @throws JebException If an error occurs in the JE backend.
*/
- public void verifyBackend(RootContainer rootContainer, Entry statEntry) throws
+ public long verifyBackend(RootContainer rootContainer, Entry statEntry) throws
DatabaseException, JebException
{
this.rootContainer = rootContainer;
@@ -416,6 +417,7 @@
{
entryContainer.sharedLock.unlock();
}
+ return errorCount;
}
/**
--
Gitblit v1.10.0