From: Gary Lockyer Date: Fri, 28 Jun 2019 03:12:31 +0000 (+1200) Subject: samba-tool domain dcpromo: add --backend-store-size option X-Git-Tag: ldb-2.0.5~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2face29963da2192c81e62a98d181fe7fd22c977;p=thirdparty%2Fsamba.git samba-tool domain dcpromo: add --backend-store-size option Add a new "samba-tool domain dcpromo" option "backend-store-size". This allows the lmdb map size to be set during a promotion, instead of hard-wiring it to 8Gb. Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 3f6876a79bd..d7b7cdb315c 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -630,7 +630,8 @@ class cmd_domain_dcpromo(Command): machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend, promote_existing=True, plaintext_secrets=plaintext_secrets, - backend_store=backend_store) + backend_store=backend_store, + backend_store_size=backend_store_size) elif role == "RODC": join_RODC(logger=logger, server=server, creds=creds, lp=lp, domain=domain, site=site, netbios_name=netbios_name, targetdir=targetdir, diff --git a/selftest/knownfail.d/promote_dc_lmdb_size b/selftest/knownfail.d/promote_dc_lmdb_size deleted file mode 100644 index 96612620080..00000000000 --- a/selftest/knownfail.d/promote_dc_lmdb_size +++ /dev/null @@ -1 +0,0 @@ -samba.tests.samba_tool.promote_dc_lmdb_size.samba.tests.samba_tool.promote_dc_lmdb_size.PromoteDcLmdbSizeTestCase.test_promote_dc_96Mb