File tree 2 files changed +3
-0
lines changed
quixstreams/state/rocksdb 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class RocksDBOptions(RocksDBOptionsType):
50
50
loads : LoadsFunc = loads
51
51
open_max_retries : int = 10
52
52
open_retry_backoff : float = 3.0
53
+ use_fsync : bool = True
53
54
54
55
def to_options (self ) -> rocksdict .Options :
55
56
"""
@@ -62,6 +63,7 @@ def to_options(self) -> rocksdict.Options:
62
63
opts .set_target_file_size_base (self .target_file_size_base )
63
64
opts .set_max_write_buffer_number (self .max_write_buffer_number )
64
65
opts .set_enable_pipelined_write (self .enable_pipelined_write )
66
+ opts .set_use_fsync (self .use_fsync )
65
67
if self .wal_dir is not None :
66
68
opts .set_wal_dir (self .wal_dir )
67
69
if self .db_log_dir is not None :
Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ class RocksDBOptionsType(Protocol):
22
22
loads : LoadsFunc
23
23
open_max_retries : int
24
24
open_retry_backoff : float
25
+ use_fsync : bool
25
26
26
27
def to_options (self ) -> rocksdict .Options : ...
You can’t perform that action at this time.
0 commit comments