s4:dsdb Use 'partition modified' information to update @REPLCHANGED
authorAndrew Bartlett <abartlet@samba.org>
Fri, 16 Oct 2009 05:20:15 +0000 (16:20 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 11:43:54 +0000 (22:43 +1100)
commit96c9bc18d5ebb62c5ac04a193574db149cffe212
tree88c2d61d73a0d2a75882d5792f1aee3c86cfe6ca
parentd3a5037f2aaa0c229f96a2074cf1c84914302dcf
s4:dsdb Use 'partition modified' information to update @REPLCHANGED

This major rework of repl_meta_data changes it from using a static
list of partitions to a dynamic list created from the controls placed
on returned ldb results.

To process these in one place, the similar but distinct callbacks are
combined into a single replmd_op_callback(), which handles both the
'normal operation' and 'inbound replication' case.

This allows new partitions to be created, and replication events for
these new partitions to be scheduled immediately.

Also in this commit: We no longer specify the target partition for new
or modified objects - instead we allow the partitions module to use
the DN as normal.  THis avoids the issue where we would create two
partition head records.

Andrew Bartlett
source4/dsdb/samdb/ldb_modules/repl_meta_data.c