summaryrefslogtreecommitdiff
path: root/source4/lib/ldb_wrap.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-23 14:46:34 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 14:52:18 +1100
commit906961cd8ce4a68117fbb5dc96bfb4f5379daa5b (patch)
tree776cb1a2057591f729873008a5fc20b0a6ab15da /source4/lib/ldb_wrap.c
parenta32b3386473e40ec8b94703f66f731a29dba68f7 (diff)
downloadsamba-906961cd8ce4a68117fbb5dc96bfb4f5379daa5b.tar.gz
samba-906961cd8ce4a68117fbb5dc96bfb4f5379daa5b.tar.bz2
samba-906961cd8ce4a68117fbb5dc96bfb4f5379daa5b.zip
s4-ldb: use ldb_wrap_fork_hook() to cancel child transactions
Diffstat (limited to 'source4/lib/ldb_wrap.c')
-rw-r--r--source4/lib/ldb_wrap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/ldb_wrap.c b/source4/lib/ldb_wrap.c
index 0427a9c378..1166acd3a2 100644
--- a/source4/lib/ldb_wrap.c
+++ b/source4/lib/ldb_wrap.c
@@ -260,6 +260,10 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
*/
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);
+ }
}