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
92c146df
Commit
92c146df
authored
Jul 14, 2015
by
Jiahao Huang
Browse files
config tcp-keepalive should be numerical field not bool
parent
0f64080d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
92c146df
...
@@ -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"
,
...
...
src/scripting.c
View file @
92c146df
...
@@ -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
4
2 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>
...
...
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