From 19e515aac7a6e5ce85cfd6905a1cc773277047a9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Jan 2010 14:54:12 +1100 Subject: s4-repl: added request for RID allocation in drepl task The drepl task now checks to see if our rIDAllocationPool is exhausted, and if it is then we queue a extended operation DsGetNCChanges call to ask the RID Manager to give us a new allocation pool. Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/repl/drepl_service.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/dsdb/repl/drepl_service.h') diff --git a/source4/dsdb/repl/drepl_service.h b/source4/dsdb/repl/drepl_service.h index 0f9684fa78..eb3cd045f9 100644 --- a/source4/dsdb/repl/drepl_service.h +++ b/source4/dsdb/repl/drepl_service.h @@ -108,6 +108,8 @@ struct dreplsrv_out_operation { struct dreplsrv_partition_source_dsa *source_dsa; struct composite_context *creq; + + enum drsuapi_DsExtendedOperation extended_op; }; struct dreplsrv_notify_operation { @@ -204,6 +206,10 @@ struct dreplsrv_service { /* an active notify operation */ struct dreplsrv_notify_operation *n_current; } ops; + + struct { + struct dreplsrv_partition_source_dsa *rid_manager_source_dsa; + } ridalloc; }; #include "dsdb/repl/drepl_out_helpers.h" -- cgit From cc7967b1c0555ba7641fb0248077295521f74943 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Jan 2010 17:16:58 +1100 Subject: s4-repl: allow for callbacks when a repl operation completes Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/repl/drepl_service.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/dsdb/repl/drepl_service.h') diff --git a/source4/dsdb/repl/drepl_service.h b/source4/dsdb/repl/drepl_service.h index eb3cd045f9..b9e8640ae9 100644 --- a/source4/dsdb/repl/drepl_service.h +++ b/source4/dsdb/repl/drepl_service.h @@ -100,6 +100,8 @@ struct dreplsrv_partition { struct dreplsrv_partition_source_dsa *sources; }; +typedef void (*dreplsrv_fsmo_callback_t)(struct dreplsrv_service *, WERROR ); + struct dreplsrv_out_operation { struct dreplsrv_out_operation *prev, *next; @@ -110,6 +112,8 @@ struct dreplsrv_out_operation { struct composite_context *creq; enum drsuapi_DsExtendedOperation extended_op; + uint64_t fsmo_info; + dreplsrv_fsmo_callback_t callback; }; struct dreplsrv_notify_operation { @@ -208,6 +212,7 @@ struct dreplsrv_service { } ops; struct { + bool in_progress; struct dreplsrv_partition_source_dsa *rid_manager_source_dsa; } ridalloc; }; -- cgit From 501dd4a3b51635fd215d6e397b64f264911c7250 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 30 Dec 2009 17:11:51 +0100 Subject: s4:dsdb/repl: convert dreplsrv_op_pull_source_send/recv to tevent_req metze Signed-off-by: Andrew Tridgell --- source4/dsdb/repl/drepl_service.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'source4/dsdb/repl/drepl_service.h') diff --git a/source4/dsdb/repl/drepl_service.h b/source4/dsdb/repl/drepl_service.h index b9e8640ae9..0a0d721d5c 100644 --- a/source4/dsdb/repl/drepl_service.h +++ b/source4/dsdb/repl/drepl_service.h @@ -109,8 +109,6 @@ struct dreplsrv_out_operation { struct dreplsrv_partition_source_dsa *source_dsa; - struct composite_context *creq; - enum drsuapi_DsExtendedOperation extended_op; uint64_t fsmo_info; dreplsrv_fsmo_callback_t callback; -- cgit