]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Update hot key logging
authorMartin Schwenke <martin@meltin.net>
Fri, 1 May 2020 06:24:27 +0000 (16:24 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 22 May 2020 06:41:44 +0000 (06:41 +0000)
This message indicates that a hot key was added, so say that.  After
all the hot key slots have been filled the id will always be 0, so
don't bother logging it.

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

index e33bb07fe82a0dd608ccef61e77552ccdb2174b9..cb110ebd21d4b0d816b5586ea2050e49f155d16b 100644 (file)
@@ -871,9 +871,10 @@ ctdb_update_db_stat_hot_keys(struct ctdb_db_context *ctdb_db, TDB_DATA key,
 
        keystr = hex_encode_talloc(ctdb_db,
                                   (unsigned char *)key.dptr, key.dsize);
-       DEBUG(DEBUG_NOTICE,("Updated hot key database=%s key=%s id=%d "
-                           "count=%d\n", ctdb_db->db_name,
-                           keystr ? keystr : "" , id, count));
+       D_NOTICE("Added hot key database=%s key=%s count=%d\n",
+                ctdb_db->db_name,
+                keystr ? keystr : "" ,
+                count);
        talloc_free(keystr);
 
 sort_keys: