mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +03:00
ctdb-server: Avoid logging a count of 0 resent calls
This fixes a little thinko in commit 80de84d36e9c29d9506976f991560fb5dde99471, where this was overlooked. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Jul 10 15:15:06 UTC 2023 on atb-devel-224
This commit is contained in:
parent
60bf6f68e1
commit
61dfc8bc06
@ -1417,6 +1417,10 @@ void ctdb_call_resend_db(struct ctdb_db_context *ctdb_db)
|
||||
ctdb_call_resend(state);
|
||||
count++;
|
||||
}
|
||||
/* Avoid logging a 0 count below */
|
||||
if (count == 0) {
|
||||
return;
|
||||
}
|
||||
D_NOTICE("Resent calls for database=%s, generation=%u, count=%u\n",
|
||||
ctdb_db->db_name,
|
||||
ctdb_db->generation,
|
||||
|
Loading…
x
Reference in New Issue
Block a user