From f4fc21a222c514860b5232cce2d9f890639f5b5a Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Mon, 27 Jul 2015 09:38:19 +0000
Subject: [PATCH] OPENDJ-2159 CR-7527 PDB Storage is read-only when using verify-index tool on Windows.
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java
index 40c413d..a1cddad 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java
@@ -231,6 +231,13 @@
this.dataConfig = dataConfig;
}
+ @Override
+ void open0(WriteableTransaction txn) throws StorageRuntimeException
+ {
+ // Make sure the tree is there and readable, even if the storage is READ_ONLY.
+ txn.getRecordCount(getName());
+ }
+
/**
* Decodes an entry from its tree representation.
* <p>
--
Gitblit v1.10.0