mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
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)
This commit is contained in:
parent
606ddb1647
commit
13518b9e33
@ -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",\
|
||||
|
Loading…
x
Reference in New Issue
Block a user