From 5c8dfbbf9bea05c35fe1ce454ee47dbee5172722 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 1 May 2020 16:44:22 +1000 Subject: 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 Reviewed-by: Amitay Isaacs --- ctdb/include/ctdb_private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ctdb/include') diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 3eb536672b2..9ca87332d61 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -345,6 +345,7 @@ struct ctdb_context { struct ctdb_db_hot_key { uint32_t count; TDB_DATA key; + uint32_t last_logged_count; }; struct ctdb_db_context { -- cgit v1.2.1