Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c32c690d
Commit
c32c690d
authored
Jul 15, 2017
by
WuYunlong
Browse files
fix rewrite config: auto-aof-rewrite-min-size
parent
e74f0aa6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
c32c690d
...
@@ -1056,8 +1056,6 @@ void configSetCommand(client *c) {
...
@@ -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) {
...
@@ -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) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment