tdb_chainlock_with_timeout: Add TODO: If we time out waiting for a
[samba.git] / source3 / tdb / tdbutil.c
index d7e4350ada90540cb347f767aae20d443da4c2e7..d66a0a4d735e1b6f8f3f091eb6855ad0173b384d 100644 (file)
@@ -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;
                }
        }