]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Janitorial duty for tpot. Merge tdb error log fix.
authorJeremy Allison <jra@samba.org>
Fri, 24 Oct 2003 17:50:19 +0000 (17:50 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 24 Oct 2003 17:50:19 +0000 (17:50 +0000)
Jeremy.

source/tdb/tdb.c

index e68bda4055626b26a208f42c60039ddf05e80267..c98b0936ed07c09510f8d1a0925084b2da7c6ea6 100644 (file)
@@ -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;