summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-08 17:11:56 +0200
committerantirez <antirez@gmail.com>2014-07-18 12:20:56 +0200
commit44de3a9cfbe98cf0bf22d98f4ef8ab01b9076ab5 (patch)
treeae66612870ab7acf014bfd4656842390f0f6528e
parenta117fd2a44ab5157499794543a7a46d2132ef872 (diff)
downloadredis-44de3a9cfbe98cf0bf22d98f4ef8ab01b9076ab5.tar.gz
createLatencyReport(): initialize all advices to zero.
-rw-r--r--src/latency.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/latency.c b/src/latency.c
index ade0b9068..52c3f3a98 100644
--- a/src/latency.c
+++ b/src/latency.c
@@ -199,9 +199,9 @@ sds createLatencyReport(void) {
int advise_local_disk = 0; /* Avoid remote disks. */
int advise_ssd = 0; /* Use an SSD drive. */
int advise_write_load_info = 0; /* Print info about AOF and write load. */
- int advise_hz; /* Use higher HZ. */
- int advise_large_objects; /* Deletion of large objects. */
- int advise_relax_fsync_policy; /* appendfsync always is slow. */
+ int advise_hz = 0 /* Use higher HZ. */
+ int advise_large_objects = 0; /* Deletion of large objects. */
+ int advise_relax_fsync_policy = 0; /* appendfsync always is slow. */
int advices = 0;
/* Return ASAP if the latency engine is disabled and it looks like it