summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/repl/drepl_out_pull.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/source4/dsdb/repl/drepl_out_pull.c b/source4/dsdb/repl/drepl_out_pull.c
index db77a4e1de..a4a00b48e7 100644
--- a/source4/dsdb/repl/drepl_out_pull.c
+++ b/source4/dsdb/repl/drepl_out_pull.c
@@ -89,49 +89,6 @@ WERROR dreplsrv_schedule_pull_replication(struct dreplsrv_service *s, TALLOC_CTX
}
-/* force an immediate of the specified partition by GUID */
-WERROR dreplsrv_schedule_partition_pull_by_guid(struct dreplsrv_service *s, TALLOC_CTX *mem_ctx,
- struct GUID *guid)
-{
- struct dreplsrv_partition *p;
-
- for (p = s->partitions; p; p = p->next) {
- if (GUID_compare(&p->nc.guid, guid) == 0) {
- return dreplsrv_schedule_partition_pull(s, p, mem_ctx);
- }
- }
-
- return WERR_NOT_FOUND;
-}
-
-/* force an immediate of the specified partition by Naming Context */
-WERROR dreplsrv_schedule_partition_pull_by_nc(struct dreplsrv_service *s, TALLOC_CTX *mem_ctx,
- struct drsuapi_DsReplicaObjectIdentifier *nc)
-{
- struct dreplsrv_partition *p;
- bool valid_sid, valid_guid;
- struct dom_sid null_sid;
- ZERO_STRUCT(null_sid);
-
- valid_sid = !dom_sid_equal(&null_sid, &nc->sid);
- valid_guid = !GUID_all_zero(&nc->guid);
-
- if (!valid_sid && !valid_guid && !nc->dn) {
- return WERR_DS_DRA_INVALID_PARAMETER;
- }
-
- for (p = s->partitions; p; p = p->next) {
- if ((valid_guid && GUID_equal(&p->nc.guid, &nc->guid))
- || strequal(p->nc.dn, nc->dn)
- || (valid_sid && dom_sid_equal(&p->nc.sid, &nc->sid))) {
- return dreplsrv_schedule_partition_pull(s, p, mem_ctx);
- }
- }
-
- return WERR_DS_DRA_BAD_NC;
-}
-
-
static void dreplsrv_pending_op_callback(struct tevent_req *subreq)
{
struct dreplsrv_out_operation *op = tevent_req_callback_data(subreq,