git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
[ira/wip.git]
/
source
/
lib
/
tdb
/
common
/
tdb.c
diff --git
a/source/lib/tdb/common/tdb.c
b/source/lib/tdb/common/tdb.c
index a052ffeb6188ab0000441ae3e385459299076f47..52e2d633b0a39a56c092485410945b4888db6a52 100644
(file)
--- 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;
}
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;
}
return;
}
@@
-53,7
+53,7
@@
static void tdb_increment_seqnum(struct tdb_context *tdb)
seqnum++;
tdb_ofs_write(tdb, TDB_SEQNUM_OFS, &seqnum);
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
);
}
}