1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

ctdb-server: Avoid logging a count of 0 resent calls

This fixes a little thinko in commit
80de84d36e, 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:
Martin Schwenke 2023-06-15 10:31:07 +10:00 committed by Amitay Isaacs
parent 60bf6f68e1
commit 61dfc8bc06

View File

@ -1417,6 +1417,10 @@ void ctdb_call_resend_db(struct ctdb_db_context *ctdb_db)
ctdb_call_resend(state); ctdb_call_resend(state);
count++; count++;
} }
/* Avoid logging a 0 count below */
if (count == 0) {
return;
}
D_NOTICE("Resent calls for database=%s, generation=%u, count=%u\n", D_NOTICE("Resent calls for database=%s, generation=%u, count=%u\n",
ctdb_db->db_name, ctdb_db->db_name,
ctdb_db->generation, ctdb_db->generation,