summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-23 14:50:56 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 14:52:18 +1100
commit890e7719cf679108e7a74a660f20a40a32d7d552 (patch)
tree0f46850631f62337a32dd4b76b209c7f56a9e367 /source4/lib
parent906961cd8ce4a68117fbb5dc96bfb4f5379daa5b (diff)
downloadsamba-890e7719cf679108e7a74a660f20a40a32d7d552.tar.gz
samba-890e7719cf679108e7a74a660f20a40a32d7d552.tar.bz2
samba-890e7719cf679108e7a74a660f20a40a32d7d552.zip
s4-ldb: move the tdb_reopen_all() calls to ldb_wrap.c
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb_wrap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/lib/ldb_wrap.c b/source4/lib/ldb_wrap.c
index 1166acd3a2..ecd7bf4554 100644
--- a/source4/lib/ldb_wrap.c
+++ b/source4/lib/ldb_wrap.c
@@ -35,6 +35,7 @@
#include "dsdb/samdb/samdb.h"
#include "param/param.h"
#include "dlinklist.h"
+#include "../tdb/include/tdb.h"
/*
this is used to catch debug messages from ldb
@@ -263,7 +264,13 @@ void ldb_wrap_fork_hook(void)
struct ldb_wrap *w;
for (w=ldb_wrap_list; w; w=w->next) {
- ldb_transaction_cancel_noerr(w->ldb);
+ if (ldb_transaction_cancel_noerr(w->ldb) != LDB_SUCCESS) {
+ smb_panic("Failed to cancel child transactions\n");
+ }
}
+
+ if (tdb_reopen_all(1) == -1) {
+ smb_panic("tdb_reopen_all failed\n");
+ }
}