|
|
@ -23,7 +23,7 @@ public class RocksIterator extends RocksObject { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
nativeHandle_ = nativeHandle; |
|
|
|
nativeHandle_ = nativeHandle; |
|
|
|
// rocksDB must point to a valid RocksDB instance.
|
|
|
|
// rocksDB must point to a valid RocksDB instance.
|
|
|
|
assert(rocksDB); |
|
|
|
assert(rocksDB != null); |
|
|
|
// RocksIterator must hold a reference to the related RocksDB instance
|
|
|
|
// RocksIterator must hold a reference to the related RocksDB instance
|
|
|
|
// to guarantee that while a GC cycle starts RocksDBIterator instances
|
|
|
|
// to guarantee that while a GC cycle starts RocksDBIterator instances
|
|
|
|
// are freed prior to RocksDB instances.
|
|
|
|
// are freed prior to RocksDB instances.
|
|
|
|