don't report the faiilure of non-blocking locks. They are supposed to
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Jul 2002 03:51:53 +0000 (03:51 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 15 Jul 2002 03:51:53 +0000 (03:51 +0000)
fail sometimes, thats why they are non-blocking :)

source/tdb/tdb.c

index 1118ad9c67a48942bbb83e562a5af12f1d6fe59e..ed75a55e3e9739370c46f091d13481b2443c2989 100644 (file)
@@ -189,7 +189,7 @@ static int tdb_brlock(TDB_CONTEXT *tdb, tdb_off offset,
        } while (ret == -1 && errno == EINTR);
 
        if (ret == -1) {
-               if (!probe) {
+               if (!probe && lck_type != F_SETLK) {
                        TDB_LOG((tdb, 5,"tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d\n", 
                                 tdb->fd, offset, rw_type, lck_type));
                }