1
0
mirror of https://github.com/fluencelabs/redis synced 2025-04-03 00:01:04 +00:00

Merge pull request from trevor211/fixAutoAofRewirteMinSize

fix rewrite config: auto-aof-rewrite-min-size
This commit is contained in:
Salvatore Sanfilippo 2017-07-24 15:18:56 +02:00 committed by GitHub
commit ae40e5f362

@ -1056,8 +1056,6 @@ void configSetCommand(client *c) {
"active-defrag-cycle-max",server.active_defrag_cycle_max,1,99) { "active-defrag-cycle-max",server.active_defrag_cycle_max,1,99) {
} config_set_numerical_field( } config_set_numerical_field(
"auto-aof-rewrite-percentage",server.aof_rewrite_perc,0,LLONG_MAX){ "auto-aof-rewrite-percentage",server.aof_rewrite_perc,0,LLONG_MAX){
} config_set_numerical_field(
"auto-aof-rewrite-min-size",server.aof_rewrite_min_size,0,LLONG_MAX) {
} config_set_numerical_field( } config_set_numerical_field(
"hash-max-ziplist-entries",server.hash_max_ziplist_entries,0,LLONG_MAX) { "hash-max-ziplist-entries",server.hash_max_ziplist_entries,0,LLONG_MAX) {
} config_set_numerical_field( } config_set_numerical_field(
@ -1136,6 +1134,8 @@ void configSetCommand(client *c) {
} }
} config_set_memory_field("repl-backlog-size",ll) { } config_set_memory_field("repl-backlog-size",ll) {
resizeReplicationBacklog(ll); resizeReplicationBacklog(ll);
} config_set_memory_field("auto-aof-rewrite-min-size",ll) {
server.aof_rewrite_min_size = ll;
/* Enumeration fields. /* Enumeration fields.
* config_set_enum_field(name,var,enum_var) */ * config_set_enum_field(name,var,enum_var) */