File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -3295,6 +3295,16 @@ uint64_t rocksdb_options_get_periodic_compaction_seconds(
3295
3295
return opt->rep .periodic_compaction_seconds ;
3296
3296
}
3297
3297
3298
+ void rocksdb_options_set_memtable_op_scan_flush_trigger (rocksdb_options_t * opt,
3299
+ uint32_t n) {
3300
+ opt->rep .memtable_op_scan_flush_trigger = n;
3301
+ }
3302
+
3303
+ uint32_t rocksdb_options_get_memtable_op_scan_flush_trigger (
3304
+ rocksdb_options_t * opt) {
3305
+ return opt->rep .memtable_op_scan_flush_trigger ;
3306
+ }
3307
+
3298
3308
void rocksdb_options_enable_statistics (rocksdb_options_t * opt) {
3299
3309
opt->rep .statistics = ROCKSDB_NAMESPACE::CreateDBStatistics ();
3300
3310
}
Original file line number Diff line number Diff line change @@ -2129,6 +2129,10 @@ int main(int argc, char** argv) {
2129
2129
CheckCondition (100000 ==
2130
2130
rocksdb_options_get_periodic_compaction_seconds (o ));
2131
2131
2132
+ rocksdb_options_set_memtable_op_scan_flush_trigger (o , 100 );
2133
+ CheckCondition (100 ==
2134
+ rocksdb_options_get_memtable_op_scan_flush_trigger (o ));
2135
+
2132
2136
rocksdb_options_set_ttl (o , 5000 );
2133
2137
CheckCondition (5000 == rocksdb_options_get_ttl (o ));
2134
2138
@@ -2566,6 +2570,12 @@ int main(int argc, char** argv) {
2566
2570
CheckCondition (100000 ==
2567
2571
rocksdb_options_get_periodic_compaction_seconds (o ));
2568
2572
2573
+ rocksdb_options_set_memtable_op_scan_flush_trigger (copy , 800 );
2574
+ CheckCondition (800 ==
2575
+ rocksdb_options_get_memtable_op_scan_flush_trigger (copy ));
2576
+ CheckCondition (100 ==
2577
+ rocksdb_options_get_memtable_op_scan_flush_trigger (o ));
2578
+
2569
2579
rocksdb_options_set_ttl (copy , 8000 );
2570
2580
CheckCondition (8000 == rocksdb_options_get_ttl (copy ));
2571
2581
CheckCondition (5000 == rocksdb_options_get_ttl (o ));
Original file line number Diff line number Diff line change @@ -1341,6 +1341,11 @@ extern ROCKSDB_LIBRARY_API void rocksdb_options_set_periodic_compaction_seconds(
1341
1341
rocksdb_options_t * , uint64_t );
1342
1342
extern ROCKSDB_LIBRARY_API uint64_t
1343
1343
rocksdb_options_get_periodic_compaction_seconds (rocksdb_options_t * );
1344
+ extern ROCKSDB_LIBRARY_API void
1345
+ rocksdb_options_set_memtable_op_scan_flush_trigger (rocksdb_options_t * ,
1346
+ uint32_t );
1347
+ extern ROCKSDB_LIBRARY_API uint32_t
1348
+ rocksdb_options_get_memtable_op_scan_flush_trigger (rocksdb_options_t * );
1344
1349
1345
1350
enum {
1346
1351
rocksdb_statistics_level_disable_all = 0 ,
You can’t perform that action at this time.
0 commit comments