summaryrefslogtreecommitdiff
path: root/ctdb/include
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-05-01 16:44:22 +1000
committerAmitay Isaacs <amitay@samba.org>2020-05-22 06:41:45 +0000
commit5c8dfbbf9bea05c35fe1ce454ee47dbee5172722 (patch)
tree9bac5c62a8786dc7bcafe10e0179116638a36f4c /ctdb/include
parentbaf058dcf72e4072ecc2f4bf775f04c271a6e10b (diff)
downloadsamba-5c8dfbbf9bea05c35fe1ce454ee47dbee5172722.tar.gz
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>
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h1
1 files changed, 1 insertions, 0 deletions
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 {