From 540ea316e77eb38f09a74b07365964c2a1161d8e Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Tue, 31 Mar 2015 16:02:26 +0000
Subject: [PATCH] OPENDJ-1199: Reduce memory/disk usage of JE backend (variable length encoding for EntryIDSet)
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
index 8c1f0e0..15db2a5 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
@@ -705,7 +705,7 @@
*/
EntryID getHighestEntryID(ReadableTransaction txn) throws StorageRuntimeException
{
- Cursor cursor = txn.openCursor(id2entry.getName());
+ Cursor<ByteString, ByteString> cursor = txn.openCursor(id2entry.getName());
try
{
// Position a cursor on the last data item, and the key should give the highest ID.
@@ -1196,7 +1196,7 @@
try
{
- final Cursor cursor = txn.openCursor(dn2id.getName());
+ final Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName());
try
{
// Initialize the cursor very close to the starting value.
@@ -1662,7 +1662,7 @@
int subordinateEntriesDeleted = 0;
- Cursor cursor = txn.openCursor(dn2id.getName());
+ Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName());
try
{
// Step forward until we pass the ending value.
@@ -2235,7 +2235,7 @@
suffix.append((byte) 0x00);
end.append((byte) 0x01);
- Cursor cursor = txn.openCursor(dn2id.getName());
+ Cursor<ByteString, ByteString> cursor = txn.openCursor(dn2id.getName());
try
{
@@ -2783,7 +2783,7 @@
database.delete(txn);
if(database instanceof Index)
{
- state.removeIndexTrustState(txn, database);
+ state.deleteRecord(txn, database.getName());
}
}
@@ -2801,7 +2801,7 @@
for (Index index : attributeIndex.getAllIndexes())
{
index.delete(txn);
- state.removeIndexTrustState(txn, index);
+ state.deleteRecord(txn, index.getName());
}
}
--
Gitblit v1.10.0