summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_backend.h
diff options
context:
space:
mode:
authoreindenbom <eindenbom@gmail.com>2010-07-02 18:46:53 +0400
committerStephen Gallagher <sgallagh@redhat.com>2010-07-09 11:44:06 -0400
commit54577e54d1b6300aeb348087372c14ed72530f88 (patch)
tree47af5ec5db8ab7cd430a17545ac563023f02c919 /src/providers/dp_backend.h
parent2d7a7b0140a4d3fcef9148900276e24f82e33866 (diff)
downloadsssd-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/dp_backend.h')
-rw-r--r--src/providers/dp_backend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index 69872b6c4..a31e458f7 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -177,6 +177,12 @@ struct tevent_req *be_resolve_server_send(TALLOC_CTX *memctx,
struct be_ctx *ctx,
const char *service_name);
int be_resolve_server_recv(struct tevent_req *req, struct fo_server **srv);
+/*
+ * 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 be_fo_try_next_server(struct be_ctx *ctx, const char *service_name);
int be_fo_run_callbacks_at_next_request(struct be_ctx *ctx,
const char *service_name);