ctdb-daemon: Add extra logging of hot keys
commit5c8dfbbf9bea05c35fe1ce454ee47dbee5172722
authorMartin Schwenke <martin@meltin.net>
Fri, 1 May 2020 06:44:22 +0000 (1 16:44 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 22 May 2020 06:41:45 +0000 (22 06:41 +0000)
tree9bac5c62a8786dc7bcafe10e0179116638a36f4c
parentbaf058dcf72e4072ecc2f4bf775f04c271a6e10b
ctdb-daemon: Add extra logging of hot keys

ctdbd currently only logs when a new hot key is added.  If a key gets
hotter then nothing new is logged.

Log hot key updates when the number of migrations has doubled since
the last time that key was logged.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_call.c
ctdb/server/ctdb_ltdb_server.c