X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source%2Flib%2Ftdb%2Fcommon%2Ftdb.c;h=52e2d633b0a39a56c092485410945b4888db6a52;hp=a052ffeb6188ab0000441ae3e385459299076f47;hb=de664ec1f8cf179f1d650563272c0de3f7636e2b;hpb=d8af519c2d2fcab3baa822c5fd4c1079dcbd1de3 diff --git a/source/lib/tdb/common/tdb.c b/source/lib/tdb/common/tdb.c index a052ffeb618..52e2d633b0a 100644 --- a/source/lib/tdb/common/tdb.c +++ b/source/lib/tdb/common/tdb.c @@ -42,7 +42,7 @@ static void tdb_increment_seqnum(struct tdb_context *tdb) return; } - if (tdb_brlock(tdb, TDB_SEQNUM_OFS, F_WRLCK, F_SETLKW, 1) != 0) { + if (tdb_brlock(tdb, TDB_SEQNUM_OFS, F_WRLCK, F_SETLKW, 1, 1) != 0) { return; } @@ -53,7 +53,7 @@ static void tdb_increment_seqnum(struct tdb_context *tdb) seqnum++; tdb_ofs_write(tdb, TDB_SEQNUM_OFS, &seqnum); - tdb_brlock(tdb, TDB_SEQNUM_OFS, F_UNLCK, F_SETLKW, 1); + tdb_brlock(tdb, TDB_SEQNUM_OFS, F_UNLCK, F_SETLKW, 1, 1); }