1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s4-ldb: use ldb_wrap_fork_hook() to cancel child transactions

This commit is contained in:
Andrew Tridgell 2009-10-23 14:46:34 +11:00
parent a32b338647
commit 906961cd8c
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -2,5 +2,5 @@
# if we use the ones installed in the system.
define(TDB_MIN_VERSION,1.1.7)
define(TALLOC_MIN_VERSION,2.0.0)
define(LDB_REQUIRED_VERSION,0.9.7)
define(LDB_REQUIRED_VERSION,0.9.8)
define(TEVENT_REQUIRED_VERSION,0.9.8)