ctdb-common: Log a count of dropped messages with non-blocking logging
authorMartin Schwenke <martin@meltin.net>
Thu, 1 Jun 2017 11:13:58 +0000 (21:13 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 13 Jun 2017 07:12:19 +0000 (09:12 +0200)
commitd79c601fde6ec97e0463d42a133c5ec42193b025
tree404db7e65ff00d5ea6008e5a715b25a47dce9407
parent323291a46e26e0493d43052550e57e2989b83b97
ctdb-common: Log a count of dropped messages with non-blocking logging

The non-blocking logging variants can currently silently drop messages
when the socket queue fills.

In this case, count the number of dropped messages and attempt to log
a message about dropped log messages when the next message is logged.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/logging.c