From c787fb50b8642d93f878c8187d3578815402eb24 Mon Sep 17 00:00:00 2001
From: fyrz Multiple threads can invoke const methods on an RocksIterator without
* external synchronization, but if any of the threads may call a
* non-const method, all threads accessing the same RocksIterator must use
* external synchronization. The type of the Parent Object from which the Rocks Iterator was
* created. This is used by disposeInternal to avoid double-free
* issues with the underlying C++ object.
* @see org.rocksdb.RocksObject
@@ -78,7 +78,7 @@ public abstract class AbstractRocksIterator
/**
* Deletes underlying C++ iterator pointer. Note: the underlying handle can only be safely deleted if the parent
* instance related to a certain RocksIterator is still valid and initialized.
* Therefore {@code disposeInternal()} checks if the parent is initialized
diff --git a/java/org/rocksdb/RocksIteratorInterface.java b/java/org/rocksdb/RocksIteratorInterface.java
index 15f3a9aa9a..b5cc90afb2 100644
--- a/java/org/rocksdb/RocksIteratorInterface.java
+++ b/java/org/rocksdb/RocksIteratorInterface.java
@@ -10,7 +10,7 @@ package org.rocksdb;
* access to data one entry at a time. Multiple implementations
* are provided by this library. In particular, iterators are provided
* to access the contents of a DB and Write Batch. Multiple threads can invoke const methods on an RocksIterator without
* external synchronization, but if any of the threads may call a
* non-const method, all threads accessing the same RocksIterator must use
@@ -43,7 +43,7 @@ public interface RocksIteratorInterface {
/**
* Position at the first entry in the source whose key is that or
* past target. The iterator is valid after this call if the source contains
* a key that comes at or past target. Moves to the next entry in the source. After this call, Valid() is
* true if the iterator was not positioned at the last entry in the source. REQUIRES: {@link #isValid()} Moves to the previous entry in the source. After this call, Valid() is
* true if the iterator was not positioned at the first entry in source. REQUIRES: {@link #isValid()}