From: Ronnie Sahlberg Date: Wed, 9 Jun 2010 03:52:22 +0000 (+1000) Subject: when tdb_chainunlock() fails, print the tdb error that occured X-Git-Tag: ctdb-1.9.1~18 X-Git-Url: http://git.samba.org/?p=rusty%2Fctdb.git;a=commitdiff_plain;h=dcdd2010905b9007fbf7ab71f576cfbd48acce8a when tdb_chainunlock() fails, print the tdb error that occured --- diff --git a/common/ctdb_ltdb.c b/common/ctdb_ltdb.c index d35b6900..9e26b4c6 100644 --- a/common/ctdb_ltdb.c +++ b/common/ctdb_ltdb.c @@ -191,7 +191,7 @@ int ctdb_ltdb_unlock(struct ctdb_db_context *ctdb_db, TDB_DATA key) { int ret = tdb_chainunlock(ctdb_db->ltdb->tdb, key); if (ret != 0) { - DEBUG(DEBUG_ERR,(__location__ " tdb_chainunlock failed on database %s\n", ctdb_db->db_name)); + DEBUG(DEBUG_ERR,("tdb_chainunlock failed [%s]\n", tdb_errorstr(ctdb_db->ltdb->tdb))); } return ret; }