summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/repl/drepl_periodic.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/dsdb/repl/drepl_periodic.c b/source4/dsdb/repl/drepl_periodic.c
index d2fbe45586..9200606956 100644
--- a/source4/dsdb/repl/drepl_periodic.c
+++ b/source4/dsdb/repl/drepl_periodic.c
@@ -99,6 +99,13 @@ static void dreplsrv_periodic_run(struct dreplsrv_service *service)
DEBUG(2,("dreplsrv_periodic_run(): schedule pull replication\n"));
+ /*
+ * KCC or some administrative tool
+ * might have changed Topology graph
+ * i.e. repsFrom/repsTo
+ */
+ dreplsrv_refresh_partitions(service);
+
mem_ctx = talloc_new(service);
dreplsrv_schedule_pull_replication(service, mem_ctx);
talloc_free(mem_ctx);
@@ -106,9 +113,6 @@ static void dreplsrv_periodic_run(struct dreplsrv_service *service)
DEBUG(2,("dreplsrv_periodic_run(): run pending_ops memory=%u\n",
(unsigned)talloc_total_blocks(service)));
- /* the KCC might have changed repsFrom */
- dreplsrv_refresh_partitions(service);
-
dreplsrv_ridalloc_check_rid_pool(service);
dreplsrv_run_pending_ops(service);