diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-11-30 12:21:30 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-11-30 12:21:30 +1100 |
commit | 13518b9e331b44981906d92c6cbe3a8ed3c5474a (patch) | |
tree | 12f78d914aec5fc93e9b2cbde81b64e6cc589c4f /ctdb/include/ctdb_private.h | |
parent | 606ddb16478ca28910a2cdcf3f06e37d9bd730bd (diff) | |
download | samba-13518b9e331b44981906d92c6cbe3a8ed3c5474a.tar.gz samba-13518b9e331b44981906d92c6cbe3a8ed3c5474a.tar.xz samba-13518b9e331b44981906d92c6cbe3a8ed3c5474a.zip |
daemon: Check if log_latency_ms is set before using it
This fixes a bug where wrong variable is checked.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit f81e9add466b1d9b2796c09c6ba63b77296ea149)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r-- | ctdb/include/ctdb_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index f06a1f15872..348df091aae 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -376,7 +376,7 @@ struct ctdb_daemon_data { ctdb_db->statistics.counter.total += value; \ ctdb_db->statistics.counter.num++; \ \ - if (ctdb_db->ctdb->tunable.reclock_latency_ms != 0) { \ + if (ctdb_db->ctdb->tunable.log_latency_ms != 0) { \ if (value*1000 > ctdb_db->ctdb->tunable.log_latency_ms) { \ DEBUG(DEBUG_ERR, \ ("High latency %.6fs for operation %s on database %s\n",\ |