summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-07-30 11:51:28 +0930
committerStefan Metzmacher <metze@samba.org>2009-07-31 14:40:28 +0200
commitfa91bc67199f0d45a0e570b43aeafd816a5491bf (patch)
tree7990ad8f7879f0ccbc1d643a325c9712a77b73c8 /lib
parent42b28ee95d0884c465fd2762ee9cbf1044a8bd4d (diff)
downloadsamba-fa91bc67199f0d45a0e570b43aeafd816a5491bf.tar.gz
samba-fa91bc67199f0d45a0e570b43aeafd816a5491bf.tar.bz2
samba-fa91bc67199f0d45a0e570b43aeafd816a5491bf.zip
tdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop"
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/common/open.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c
index e58c8ca7ff..b19e4cea29 100644
--- 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;
}