Skip to content

Commit

Permalink
Use ReadOptions with checksum verification disabled for rocksdb strea…
Browse files Browse the repository at this point in the history
…ming keys

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu committed Jul 18, 2024
1 parent 69537e7 commit d165bda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ public Stream<Pair<byte[], byte[]>> streamFromKey(

@Override
public Stream<byte[]> streamKeys(final SegmentIdentifier segmentIdentifier) {
final RocksIterator rocksIterator = getDB().newIterator(safeColumnHandle(segmentIdentifier));
final RocksIterator rocksIterator =
getDB().newIterator(safeColumnHandle(segmentIdentifier), readOptions);
rocksIterator.seekToFirst();
return RocksDbIterator.create(rocksIterator).toStreamKeys();
}
Expand Down

0 comments on commit d165bda

Please sign in to comment.