From: Martin Schwenke Date: Fri, 1 May 2020 06:24:27 +0000 (+1000) Subject: ctdb-daemon: Update hot key logging X-Git-Tag: ldb-2.2.0~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf058dcf72e4072ecc2f4bf775f04c271a6e10b;p=thirdparty%2Fsamba.git ctdb-daemon: Update hot key logging 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 Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index e33bb07fe82..cb110ebd21d 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/server/ctdb_call.c @@ -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: