diff options
author | Tim Potter <tpot@samba.org> | 2003-10-24 05:44:19 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-10-24 05:44:19 +0000 |
commit | 2d03d81f753fd819086d24a92eec5503f70246a0 (patch) | |
tree | 2718f68ac57ff40d10d24951bc72573e428e1e0f /source/tdb | |
parent | 46e66ee950eee035ad008c189cd2378f734af605 (diff) | |
download | samba-2d03d81f753fd819086d24a92eec5503f70246a0.tar.gz samba-2d03d81f753fd819086d24a92eec5503f70246a0.tar.xz samba-2d03d81f753fd819086d24a92eec5503f70246a0.zip |
Add some debugs in the error paths for tdb_brlock() to help track down
a locking problem on HPUX.
Diffstat (limited to 'source/tdb')
-rw-r--r-- | source/tdb/tdb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c index e68bda40556..c98b0936ed0 100644 --- a/source/tdb/tdb.c +++ b/source/tdb/tdb.c @@ -237,10 +237,15 @@ static int tdb_brlock(TDB_CONTEXT *tdb, tdb_off offset, tdb->fd, offset, rw_type, lck_type)); } /* Was it an alarm timeout ? */ - if (errno == EINTR && palarm_fired && *palarm_fired) + if (errno == EINTR && palarm_fired && *palarm_fired) { + TDB_LOG((tdb, 5, "tdb_brlock timed out (fd=%d) at offset %d rw_type=%d lck_type=%d\n", + tdb->fd, offset, rw_type, lck_type)); return TDB_ERRCODE(TDB_ERR_LOCK_TIMEOUT, -1); + } /* Otherwise - generic lock error. */ /* errno set by fcntl */ + TDB_LOG((tdb, 5, "tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d: %s\n", + tdb->fd, offset, rw_type, lck_type, strerror(errno))); return TDB_ERRCODE(TDB_ERR_LOCK, -1); } return 0; |