diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-08-26 11:52:42 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-05 11:14:17 +0200 |
commit | 002113460c411cab449c0d7dea824cea1a6c68e7 (patch) | |
tree | 8c513af0efa3328d6bf17a2a8583099f6bba6372 /src | |
parent | 87158890d6e7239167d7c8089070f3d2cdf5e58d (diff) | |
download | sssd-002113460c411cab449c0d7dea824cea1a6c68e7.tar.gz sssd-002113460c411cab449c0d7dea824cea1a6c68e7.tar.bz2 sssd-002113460c411cab449c0d7dea824cea1a6c68e7.zip |
fo srv: add priority to fo_server_info
This will give SRV plugins all information needed for additional
sorting.
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/fail_over_srv.c | 1 | ||||
-rw-r--r-- | src/providers/fail_over_srv.h | 1 |
2 files changed, 2 insertions, 0 deletions
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; }; /* |