diff options
author | eindenbom <eindenbom@gmail.com> | 2010-07-02 18:46:53 +0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-09 11:44:06 -0400 |
commit | 54577e54d1b6300aeb348087372c14ed72530f88 (patch) | |
tree | 47af5ec5db8ab7cd430a17545ac563023f02c919 /src/providers/fail_over.h | |
parent | 2d7a7b0140a4d3fcef9148900276e24f82e33866 (diff) | |
download | sssd-54577e54d1b6300aeb348087372c14ed72530f88.tar.gz sssd-54577e54d1b6300aeb348087372c14ed72530f88.tar.xz sssd-54577e54d1b6300aeb348087372c14ed72530f88.zip |
Add an interface to try next fail-over server after connection to the active server was unexpectedly dropped.
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r-- | src/providers/fail_over.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h index 24b2c1f5f..f1a071da9 100644 --- a/src/providers/fail_over.h +++ b/src/providers/fail_over.h @@ -155,6 +155,12 @@ void fo_set_server_status(struct fo_server *server, void fo_set_port_status(struct fo_server *server, enum port_status status); +/* + * Instruct fail-over to try next server on the next connect attempt. + * Should be used after connection to service was unexpectedly dropped + * but there is no authoritative information on whether active server is down. + */ +void fo_try_next_server(struct fo_service *service); void *fo_get_server_user_data(struct fo_server *server); |