summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-01-09 07:23:23 +0000
committerMartin Pool <mbp@samba.org>2003-01-09 07:23:23 +0000
commit3419ef3fb6afce11e4c0016182ac3fe9cdef7340 (patch)
tree4e67c73ed0b7524e4bfa11824ac8e7020b69396a /source3
parentc4b4386996c0f759017c74d928b37f62d1f710f4 (diff)
downloadsamba-3419ef3fb6afce11e4c0016182ac3fe9cdef7340.tar.gz
samba-3419ef3fb6afce11e4c0016182ac3fe9cdef7340.tar.bz2
samba-3419ef3fb6afce11e4c0016182ac3fe9cdef7340.zip
tdb_chainlock_with_timeout: Add TODO: If we time out waiting for a
lock, it might be nice to use F_GETLK to get the pid of the process currently holding the lock and print that as part of the debugging message. I'd like to have this in appliance_head, but the code is too different so I won't worry for now. (This used to be commit 575908cb06a653225a2fa79ecd025af0e3dafc05)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdbutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c
index d7e4350ada..d66a0a4d73 100644
--- a/source3/tdb/tdbutil.c
+++ b/source3/tdb/tdbutil.c
@@ -62,6 +62,10 @@ static int tdb_chainlock_with_timeout( TDB_CONTEXT *tdb, TDB_DATA key, unsigned
if (gotalarm) {
DEBUG(0,("tdb_chainlock_with_timeout: alarm (%u) timed out for key %s in tdb %s\n",
timeout, key.dptr, tdb->name ));
+ /* TODO: If we time out waiting for a lock, it might
+ * be nice to use F_GETLK to get the pid of the
+ * process currently holding the lock and print that
+ * as part of the debugging message. -- mbp */
return -1;
}
}