From 002113460c411cab449c0d7dea824cea1a6c68e7 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 26 Aug 2013 11:52:42 +0200 Subject: fo srv: add priority to fo_server_info This will give SRV plugins all information needed for additional sorting. --- src/providers/fail_over_srv.c | 1 + src/providers/fail_over_srv.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/providers/fail_over_srv.c b/src/providers/fail_over_srv.c index 76f6d468..de3b7f9c 100644 --- a/src/providers/fail_over_srv.c +++ b/src/providers/fail_over_srv.c @@ -124,6 +124,7 @@ static void fo_discover_srv_done(struct tevent_req *subreq) record = record->next, i++) { state->servers[i].host = talloc_steal(state->servers, record->host); state->servers[i].port = record->port; + state->servers[i].priority = record->priority; } talloc_zfree(reply_list); diff --git a/src/providers/fail_over_srv.h b/src/providers/fail_over_srv.h index 568350d1..c4b50ba3 100644 --- a/src/providers/fail_over_srv.h +++ b/src/providers/fail_over_srv.h @@ -31,6 +31,7 @@ struct fo_server_info { char *host; int port; + unsigned short priority; }; /* -- cgit