Commit 92c146df authored by Jiahao Huang's avatar Jiahao Huang
Browse files

config tcp-keepalive should be numerical field not bool

parent 0f64080d
...@@ -875,11 +875,11 @@ void configSetCommand(redisClient *c) { ...@@ -875,11 +875,11 @@ void configSetCommand(redisClient *c) {
"activerehashing",server.activerehashing) { "activerehashing",server.activerehashing) {
} config_set_bool_field( } config_set_bool_field(
"stop-writes-on-bgsave-error",server.stop_writes_on_bgsave_err) { "stop-writes-on-bgsave-error",server.stop_writes_on_bgsave_err) {
} config_set_bool_field(
"tcp-keepalive",server.tcpkeepalive) {
/* Numerical fields. /* Numerical fields.
* config_set_numerical_field(name,var,min,max) */ * config_set_numerical_field(name,var,min,max) */
} config_set_numerical_field(
"tcp-keepalive",server.tcpkeepalive,0,LLONG_MAX) {
} config_set_numerical_field( } config_set_numerical_field(
"maxmemory-samples",server.maxmemory_samples,1,LLONG_MAX) { "maxmemory-samples",server.maxmemory_samples,1,LLONG_MAX) {
} config_set_numerical_field( } config_set_numerical_field(
...@@ -1088,9 +1088,9 @@ void configGetCommand(redisClient *c) { ...@@ -1088,9 +1088,9 @@ void configGetCommand(redisClient *c) {
config_get_numerical_field("cluster-migration-barrier",server.cluster_migration_barrier); config_get_numerical_field("cluster-migration-barrier",server.cluster_migration_barrier);
config_get_numerical_field("cluster-slave-validity-factor",server.cluster_slave_validity_factor); config_get_numerical_field("cluster-slave-validity-factor",server.cluster_slave_validity_factor);
config_get_numerical_field("repl-diskless-sync-delay",server.repl_diskless_sync_delay); config_get_numerical_field("repl-diskless-sync-delay",server.repl_diskless_sync_delay);
config_get_numerical_field("tcp-keepalive",server.tcpkeepalive);
/* Bool (yes/no) values */ /* Bool (yes/no) values */
config_get_bool_field("tcp-keepalive",server.tcpkeepalive);
config_get_bool_field("cluster-require-full-coverage", config_get_bool_field("cluster-require-full-coverage",
server.cluster_require_full_coverage); server.cluster_require_full_coverage);
config_get_bool_field("no-appendfsync-on-rewrite", config_get_bool_field("no-appendfsync-on-rewrite",
......
...@@ -880,7 +880,7 @@ void luaSetGlobalArray(lua_State *lua, char *var, robj **elev, int elec) { ...@@ -880,7 +880,7 @@ void luaSetGlobalArray(lua_State *lua, char *var, robj **elev, int elec) {
} }
/* Define a lua function with the specified function name and body. /* Define a lua function with the specified function name and body.
* The function name musts be a 2 characters long string, since all the * The function name musts be a 42 characters long string, since all the
* functions we defined in the Lua context are in the form: * functions we defined in the Lua context are in the form:
* *
* f_<hex sha1 sum> * f_<hex sha1 sum>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment