mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Expose JNI layer for these options: block_size, max_write_buffer_number, write_buffer_size, disable_seek_compaction, max_background_compactions.
This commit is contained in:
@@ -33,6 +33,19 @@ public class RocksDBSample {
|
||||
}
|
||||
|
||||
options.setCreateIfMissing(true);
|
||||
options.setWriteBufferSize(8*1024);
|
||||
options.setMaxWriteBufferNumber(3);
|
||||
options.setDisableSeekCompaction(true);
|
||||
options.setBlockSize(64*1024);
|
||||
options.setMaxBackgroundCompactions(10);
|
||||
|
||||
assert(options.createIfMissing() == true);
|
||||
assert(options.writeBufferSize() == 8192);
|
||||
assert(options.maxWriteBufferNumber() == 3);
|
||||
assert(options.disableSeekCompaction() == true);
|
||||
assert(options.blockSize() == 65536);
|
||||
assert(options.maxBackgroundCompactions() == 10);
|
||||
|
||||
try {
|
||||
db = RocksDB.open(options, db_path_not_found);
|
||||
db.put("hello".getBytes(), "world".getBytes());
|
||||
|
||||
Reference in New Issue
Block a user