diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-07-02 12:31:52 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-04 10:02:23 +0000 |
commit | 4335f4b4e411d5c58bd0bd873115cb6c670a789c (patch) | |
tree | 5de0fb12ae60062b5e6ce8c2d87925aa3eba379d /python/samba/join.py | |
parent | 86d480ade25953a175b0837667ce5efb8b7e65df (diff) | |
download | samba-4335f4b4e411d5c58bd0bd873115cb6c670a789c.tar.gz |
domain join: enable ldb batch mode
Enable ldb "batch_mode" transactions duting a join to improve
performance.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba/join.py')
-rw-r--r-- | python/samba/join.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/join.py b/python/samba/join.py index 77d260b42fa..ac4346c62a3 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -877,8 +877,8 @@ class DCJoinContext(object): use_ntvfs=ctx.use_ntvfs, dns_backend=ctx.dns_backend, plaintext_secrets=ctx.plaintext_secrets, backend_store=ctx.backend_store, - backend_store_size=ctx.backend_store_size - ) + backend_store_size=ctx.backend_store_size, + batch_mode=True) print("Provision OK for domain DN %s" % presult.domaindn) ctx.local_samdb = presult.samdb ctx.lp = presult.lp |