Merge pull request #5000 from shenlongxing/fix-config

fix integer case error
This commit is contained in:
Salvatore Sanfilippo 2018-06-11 16:34:26 +02:00 committed by GitHub
commit ba2101738d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1110,7 +1110,7 @@ void configSetCommand(client *c) {
} config_set_numerical_field(
"slowlog-max-len",ll,0,LLONG_MAX) {
/* Cast to unsigned. */
server.slowlog_max_len = (unsigned)ll;
server.slowlog_max_len = (unsigned long)ll;
} config_set_numerical_field(
"latency-monitor-threshold",server.latency_monitor_threshold,0,LLONG_MAX){
} config_set_numerical_field(