|
|
@ -255,7 +255,7 @@ impl Db { |
|
|
|
!write_options.is_null(), |
|
|
|
!write_options.is_null(), |
|
|
|
"rocksdb_writeoptions_create returned null" |
|
|
|
"rocksdb_writeoptions_create returned null" |
|
|
|
); |
|
|
|
); |
|
|
|
rocksdb_writeoptions_set_syc(write_options, 1); |
|
|
|
rocksdb_writeoptions_set_sync(write_options, 1); |
|
|
|
if in_memory { |
|
|
|
if in_memory { |
|
|
|
rocksdb_writeoptions_disable_WAL(write_options, 1); // No need for WAL
|
|
|
|
rocksdb_writeoptions_disable_WAL(write_options, 1); // No need for WAL
|
|
|
|
} |
|
|
|
} |
|
|
|