From f09c069e92d051036af2a969fe5289cb7c4826ba Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 26 Oct 2015 08:22:49 +0000
Subject: [PATCH] OPENDJ-2349: fix deadlocks during subtree deletes and moddn
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/SequentialCursor.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/SequentialCursor.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/SequentialCursor.java
index 6bc2276..f7a8f4f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/SequentialCursor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/SequentialCursor.java
@@ -68,7 +68,17 @@
*/
V getValue() throws NoSuchElementException;
+ /**
+ * Deletes the record on which this cursor is currently positioned. This method does not alter the position of the
+ * cursor. In particular, {@link #next()} must be called in order to point to the next record. The behavior of
+ * methods {@link #getKey()} and {@link #getValue()} after this method returns is undefined.
+ *
+ * @throws NoSuchElementException if the cursor is not defined.
+ * @throws UnsupportedOperationException if the cursor implementation does not support updates.
+ */
+ void delete() throws NoSuchElementException, UnsupportedOperationException;
+
/** {@inheritDoc} */
@Override
void close();
-}
\ No newline at end of file
+}
--
Gitblit v1.10.0