Check status unsafe
This commit is contained in:
parent
6a68c8452b
commit
591963f630
@ -225,6 +225,7 @@ public class RocksDBFile implements Comparable<RocksDBFile> {
|
|||||||
}
|
}
|
||||||
return new RocksDBFileIterationStateBegin(meta);
|
return new RocksDBFileIterationStateBegin(meta);
|
||||||
} else {
|
} else {
|
||||||
|
rocksIterator.statusUnsafe();
|
||||||
rawKey = rocksIterator.keyBuf().copy();
|
rawKey = rocksIterator.keyBuf().copy();
|
||||||
rawValue = rocksIterator.valueBuf().copy();
|
rawValue = rocksIterator.valueBuf().copy();
|
||||||
rocksIterator.next();
|
rocksIterator.next();
|
||||||
|
@ -168,6 +168,10 @@ public abstract class RocksIteratorObj extends SimpleResource {
|
|||||||
rocksIterator.next();
|
rocksIterator.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public synchronized void statusUnsafe() throws RocksDBException {
|
||||||
|
rocksIterator.status();
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void seekToLast() throws RocksDBException {
|
public synchronized void seekToLast() throws RocksDBException {
|
||||||
ensureOpen();
|
ensureOpen();
|
||||||
startedIterSeek.increment();
|
startedIterSeek.increment();
|
||||||
|
Loading…
Reference in New Issue
Block a user