1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-daemon: Fix statistics update macro

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2015-03-27 16:32:11 +11:00 committed by Stefan Metzmacher
parent b47a244afb
commit 16f33c992e

View File

@ -134,10 +134,10 @@ struct ctdb_daemon_data {
#define CTDB_UPDATE_STAT(ctdb, counter, value) \ #define CTDB_UPDATE_STAT(ctdb, counter, value) \
{ \ { \
if (value > ctdb->statistics.counter) { \ if (value > ctdb->statistics.counter) { \
ctdb->statistics.counter = c->hopcount; \ ctdb->statistics.counter = value; \
} \ } \
if (value > ctdb->statistics_current.counter) { \ if (value > ctdb->statistics_current.counter) { \
ctdb->statistics_current.counter = c->hopcount; \ ctdb->statistics_current.counter = value; \
} \ } \
} }