From: Andrew Tridgell Date: Fri, 11 Sep 2009 12:47:11 +0000 (+1000) Subject: s4-repl: refresh the partitions on each cycle X-Git-Tag: talloc-2.0.1~525^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd7cf6988e0b63537d21735acbb79179bfb5bd8f;p=thirdparty%2Fsamba.git s4-repl: refresh the partitions on each cycle The KCC might have changed repsFrom, which is stored in the partitions structure --- diff --git a/source4/dsdb/repl/drepl_partitions.c b/source4/dsdb/repl/drepl_partitions.c index f36b735d325..88c4bbf0652 100644 --- a/source4/dsdb/repl/drepl_partitions.c +++ b/source4/dsdb/repl/drepl_partitions.c @@ -33,8 +33,6 @@ #include "librpc/gen_ndr/ndr_drsblobs.h" #include "param/param.h" -static WERROR dreplsrv_refresh_partitions(struct dreplsrv_service *s); - WERROR dreplsrv_load_partitions(struct dreplsrv_service *s) { WERROR status; @@ -256,7 +254,7 @@ static WERROR dreplsrv_refresh_partition(struct dreplsrv_service *s, return WERR_OK; } -static WERROR dreplsrv_refresh_partitions(struct dreplsrv_service *s) +WERROR dreplsrv_refresh_partitions(struct dreplsrv_service *s) { WERROR status; struct dreplsrv_partition *p; diff --git a/source4/dsdb/repl/drepl_periodic.c b/source4/dsdb/repl/drepl_periodic.c index b88d2cee1ee..36d5f924be5 100644 --- a/source4/dsdb/repl/drepl_periodic.c +++ b/source4/dsdb/repl/drepl_periodic.c @@ -105,5 +105,8 @@ static void dreplsrv_periodic_run(struct dreplsrv_service *service) DEBUG(2,("dreplsrv_periodic_run(): run pending_ops\n")); + /* the KCC might have changed repsFrom */ + dreplsrv_refresh_partitions(service); + dreplsrv_run_pending_ops(service); }