summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-09-21 12:31:18 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-23 23:08:50 +0200
commit669ce24f8157b7d79914b3eb5a18214ef42aacc8 (patch)
tree0839a29ed8b9688dbaab4cb46a7c837ed72a913d /src/providers/fail_over.h
parent4c53f8b7400630ae06459aa8b5079427edcaa348 (diff)
downloadsssd-669ce24f8157b7d79914b3eb5a18214ef42aacc8.tar.gz
sssd-669ce24f8157b7d79914b3eb5a18214ef42aacc8.tar.xz
sssd-669ce24f8157b7d79914b3eb5a18214ef42aacc8.zip
FO: Add an API to reset all servers in a single service
Required for: https://fedorahosted.org/sssd/ticket/2639 Previously, we had a function that allowed the caller to reset the status of all services in the global fail over context. This patch adds a new function that allows the caller to reset a single service instead. The main user would be IPA subdomain provider that might need to reset the status of an AD trusted domain on demand. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r--src/providers/fail_over.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h
index d44ad2ff1..e49c6414a 100644
--- a/src/providers/fail_over.h
+++ b/src/providers/fail_over.h
@@ -198,6 +198,8 @@ time_t fo_get_service_retry_timeout(struct fo_service *svc);
void fo_reset_services(struct fo_ctx *fo_ctx);
+void fo_reset_servers(struct fo_service *svc);
+
bool fo_svc_has_server(struct fo_service *service, struct fo_server *server);
/*