s3:dbwrap_ctdb: improve error message in transaction destructor
authorGregor Beck <gbeck@sernet.de>
Mon, 5 Sep 2011 15:07:37 +0000 (17:07 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 7 Sep 2011 17:50:05 +0000 (19:50 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/dbwrap/dbwrap_ctdb.c

index 3233253f7c9292bf6a7baf7de2302da2fde2c654..429f542f1acdb5c330af7254af04f2c861cac3d8 100644 (file)
@@ -329,7 +329,8 @@ static int db_ctdb_transaction_destructor(struct db_ctdb_transaction_handle *h)
 
        status = g_lock_unlock(h->ctx->lock_ctx, h->lock_name);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, ("g_lock_unlock failed: %s\n", nt_errstr(status)));
+               DEBUG(0, ("g_lock_unlock failed for %s: %s\n", h->lock_name,
+                         nt_errstr(status)));
                return -1;
        }
        return 0;