git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18168da
)
when tdb_chainunlock() fails, print the tdb error that occured
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 9 Jun 2010 03:52:22 +0000
(13:52 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 9 Jun 2010 04:36:59 +0000
(14:36 +1000)
common/ctdb_ltdb.c
patch
|
blob
|
history
diff --git
a/common/ctdb_ltdb.c
b/common/ctdb_ltdb.c
index d35b6900c9711ea402437c0872b6609ce6e0b4fd..9e26b4c6f547024f5cb360f0f6c77ac7804b8187 100644
(file)
--- 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;
}