[PATCH] do a partial replication with drs replicate --local

Bob Campbell bobcampbell at catalyst.net.nz
Tue Jan 31 20:59:35 UTC 2017


Hi,

"samba-tool drs replicate --local" would previously always do a full
replication, as replicate() would always use a highwatermark with all 0s
and no uptodateness_vector. These patches let replicate() optionally
take a highwatermark and an uptodateness_vector, and make drs replicate
--local send the appropriate one by default. They also include a test
for this. This allows us to manually pull only changes to a server which
isn't yet joined to the domain.

One potential issue is: should the default behavior be to do a partial
replication, or a full replication? Previously, it was a full
replication, whereas these patches change it to a partial replication
(this is trivial to change).

Please review and push if appropriate.

Thanks,
Bob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-python-tests-improve-samba-tool-replicate-local-test.patch
Type: text/x-patch
Size: 8503 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170201/3e7f3ca4/0005-python-tests-improve-samba-tool-replicate-local-test.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-python-tests-move-samba_tool_drs-test-to-proper-plac.patch
Type: text/x-patch
Size: 38286 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170201/3e7f3ca4/0004-python-tests-move-samba_tool_drs-test-to-proper-plac.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-samba-tool-drs-do-partial-replication-when-local-is-.patch
Type: text/x-patch
Size: 7334 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170201/3e7f3ca4/0003-samba-tool-drs-do-partial-replication-when-local-is-.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-drs_utils-use-a-given-highwatermark-and-uptodateness.patch
Type: text/x-patch
Size: 1960 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170201/3e7f3ca4/0002-drs_utils-use-a-given-highwatermark-and-uptodateness.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-drs_utils-return-number-of-replicated-objects-and-li.patch
Type: text/x-patch
Size: 2294 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170201/3e7f3ca4/0001-drs_utils-return-number-of-replicated-objects-and-li.bin>


More information about the samba-technical mailing list