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:11:36 +0200 |
commit | 0a320004a9937295ba66a348d1e60682cfdceb26 (patch) | |
tree | b29163f7a61d90cb5d872c6514e0b03f9356d0c9 /src/providers/data_provider_be.c | |
parent | 9de5878d247b77b8f520a57727cd55f42e179caa (diff) | |
download | sssd-0a320004a9937295ba66a348d1e60682cfdceb26.tar.gz sssd-0a320004a9937295ba66a348d1e60682cfdceb26.tar.xz sssd-0a320004a9937295ba66a348d1e60682cfdceb26.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 e7037d8de..a0b2758b1 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; |