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:
parent
a32b338647
commit
906961cd8c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user