diff options
author | Sumit Bose <sbose@redhat.com> | 2013-10-21 13:37:37 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-10-22 19:13:02 +0200 |
commit | 7c5c79e90fbf7c26cae7c3b31babd209a94aa3da (patch) | |
tree | 50513c04175147691088afc9ade6d8f9d6f610de /src/providers/data_provider_be.c | |
parent | 278cc6555abf28d60394e5696c7885608a7924aa (diff) | |
download | sssd-7c5c79e90fbf7c26cae7c3b31babd209a94aa3da.tar.gz sssd-7c5c79e90fbf7c26cae7c3b31babd209a94aa3da.tar.xz sssd-7c5c79e90fbf7c26cae7c3b31babd209a94aa3da.zip |
Add unconditional online callbacks
Currently online callbacks are only executed if the backend was offline
before. This patch add a new class of callback which are always called
if the backend gets a request to go online.
They can be used e.g. to reset timeouts until a more sophisticated method
(OpenLMI, sssctl) is available.
Diffstat (limited to 'src/providers/data_provider_be.c')
-rw-r--r-- | src/providers/data_provider_be.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 912b4191c..1f3f94159 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -2209,6 +2209,8 @@ static void check_if_online(struct be_ctx *ctx) int ret; struct be_req *be_req = NULL; + be_run_unconditional_online_cb(ctx); + if (ctx->offstat.offline == false) { DEBUG(8, ("Backend is already online, nothing to do.\n")); return; |