diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-28 02:26:00 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-08-28 23:38:59 +0300 |
commit | 53551a76c5b6bdcbb2e039ee98f4a712fbc6e8cb (patch) | |
tree | 1db8b17cada5dbd0c02da38a1e53644d11c882ef /source4 | |
parent | d15a7d9099f4eef8e1a82d0935cca8cfab542e5c (diff) | |
download | samba-53551a76c5b6bdcbb2e039ee98f4a712fbc6e8cb.tar.gz samba-53551a76c5b6bdcbb2e039ee98f4a712fbc6e8cb.tar.bz2 samba-53551a76c5b6bdcbb2e039ee98f4a712fbc6e8cb.zip |
s4-dreplsrv: Move partition cache update before scheduling another set of replications
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/repl/drepl_periodic.c | 10 |
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); |