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:
42b28ee
)
tdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all...
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 30 Jul 2009 02:21:28 +0000
(11:51 +0930)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 31 Jul 2009 12:40:28 +0000
(14:40 +0200)
This reverts commit
e17df483fbedb81aededdef5fbb6ae1d034bc2dd
.
tdb_reopen_all also restores the active lock, required for TDB_CLEAR_IF_FIRST.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/open.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/open.c
b/lib/tdb/common/open.c
index e58c8ca7ff3c5b309a164199d5dc457b34686054..b19e4cea293df769a588db89c71df25529d677ec 100644
(file)
--- a/
lib/tdb/common/open.c
+++ b/
lib/tdb/common/open.c
@@
-461,10
+461,6
@@
fail:
/* reopen all tdb's */
int tdb_reopen_all(int parent_longlived)
{
-#if defined(LIBREPLACE_PREAD_NOT_REPLACED) && \
- defined(LIBREPLACE_PWRITE_NOT_REPLACED)
- return 0;
-#else
struct tdb_context *tdb;
for (tdb=tdbs; tdb; tdb = tdb->next) {
@@
-487,7
+483,6
@@
int tdb_reopen_all(int parent_longlived)
if (tdb_reopen(tdb) != 0)
return -1;
}
-#endif
return 0;
}