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:
parent
b47a244afb
commit
16f33c992e
@ -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; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user