diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-15 03:51:53 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-15 03:51:53 +0000 |
commit | 775b918b8c63b1fcd9a8db1743505ab718978c19 (patch) | |
tree | 45d1f082e345bd3e537e2b119724f007e6237d3a /source/tdb | |
parent | c7c49d87af5e9a0bef058e6d79188d8b11fefc02 (diff) | |
download | samba-775b918b8c63b1fcd9a8db1743505ab718978c19.tar.gz samba-775b918b8c63b1fcd9a8db1743505ab718978c19.tar.xz samba-775b918b8c63b1fcd9a8db1743505ab718978c19.zip |
don't report the faiilure of non-blocking locks. They are supposed to
fail sometimes, thats why they are non-blocking :)
Diffstat (limited to 'source/tdb')
-rw-r--r-- | source/tdb/tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c index 1118ad9c67a..ed75a55e3e9 100644 --- a/source/tdb/tdb.c +++ b/source/tdb/tdb.c @@ -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)); } |