s3: Enhance the dbwrap needed x attempts msg
[samba.git] / source3 / lib / dbwrap / dbwrap_ctdb.c
index 41d9f19a05315ed1f0377b8fd32b0251e46691b5..47d5dc692999591a4b9cfbf969aac54a6401a589 100644 (file)
@@ -1120,7 +1120,11 @@ again:
        }
 
        if (migrate_attempts > 10) {
-               DEBUG(0, ("db_ctdb_fetch_locked needed %d attempts\n",
+               DEBUG(0, ("db_ctdb_fetch_locked for %s key %s needed %d "
+                         "attempts\n", tdb_name(ctx->wtdb->tdb),
+                         hex_encode_talloc(talloc_tos(),
+                                           (unsigned char *)key.dptr,
+                                           key.dsize),
                          migrate_attempts));
        }