git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c49d8
)
don't report the faiilure of non-blocking locks. They are supposed to
author
Andrew Tridgell
<tridge@samba.org>
Mon, 15 Jul 2002 03:51:53 +0000
(
03:51
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source/tdb/tdb.c
b/source/tdb/tdb.c
index 1118ad9c67a48942bbb83e562a5af12f1d6fe59e..ed75a55e3e9739370c46f091d13481b2443c2989 100644
(file)
--- 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));
}