From f7fe6c1339f1a7da5723036cbae27ab74e13a9a2 Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Thu, 21 May 2015 12:42:58 +0000
Subject: [PATCH] OPENDJ-1763: verify-index fails with InitializationException when the server is started
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/RootContainer.java | 9 +++++++--
1 files changed, 7 insertions(+), 2 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 9e00d76..57774bb 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
@@ -49,6 +49,7 @@
import org.opends.server.backends.pluggable.spi.ReadOperation;
import org.opends.server.backends.pluggable.spi.ReadableTransaction;
import org.opends.server.backends.pluggable.spi.Storage;
+import org.opends.server.backends.pluggable.spi.Storage.AccessMode;
import org.opends.server.backends.pluggable.spi.StorageRuntimeException;
import org.opends.server.backends.pluggable.spi.StorageStatus;
import org.opends.server.backends.pluggable.spi.WriteOperation;
@@ -127,11 +128,11 @@
* @throws ConfigException
* If an configuration error occurs while opening the storage.
*/
- void open() throws StorageRuntimeException, ConfigException
+ void open(AccessMode accessMode) throws StorageRuntimeException, ConfigException
{
try
{
- storage.open();
+ storage.open(accessMode);
storage.write(new WriteOperation()
{
@Override
@@ -142,6 +143,10 @@
}
});
}
+ catch(StorageRuntimeException e)
+ {
+ throw e;
+ }
catch (Exception e)
{
throw new StorageRuntimeException(e);
--
Gitblit v1.10.0