From b506a6cd184bd8cf477f7d9a7f968c990f153528 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 23 Mar 2015 23:03:19 +0000
Subject: [PATCH] OPENDJ-1848 CR-6383: Remove Storage getRMW and putIfAbsent methods
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/ID2Entry.java | 34 ----------------------------------
1 files changed, 0 insertions(+), 34 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 9cd2d9e..e07dc08 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
@@ -309,35 +309,6 @@
}
}
-
-
- /**
- * Insert a record into the entry database.
- *
- * @param txn The database transaction or null if none.
- * @param id The entry ID which forms the key.
- * @param entry The LDAP entry.
- * @return true if the entry was inserted, false if a record with that
- * ID already existed.
- * @throws StorageRuntimeException If an error occurs in the JE database.
- * @throws DirectoryException If a problem occurs while attempting to encode
- * the entry.
- */
- boolean insert(WriteableStorage txn, EntryID id, Entry entry) throws StorageRuntimeException, DirectoryException
- {
- ByteString key = id.toByteString();
- EntryCodec codec = acquireEntryCodec();
- try
- {
- ByteString value = codec.encodeInternal(entry, dataConfig);
- return txn.putIfAbsent(getName(), key, value);
- }
- finally
- {
- codec.release();
- }
- }
-
/**
* Write a record in the entry database.
*
@@ -392,11 +363,6 @@
return get0(id, txn.read(getName(), id.toByteString()));
}
- public Entry getRMW(ReadableStorage txn, EntryID id) throws DirectoryException, StorageRuntimeException
- {
- return get0(id, txn.getRMW(getName(), id.toByteString()));
- }
-
private Entry get0(EntryID id, ByteString value) throws DirectoryException
{
if (value == null)
--
Gitblit v1.10.0