Blame SOURCES/0056-BE-Schedule-the-refresh-interval-from-the-finish-tim.patch

8d3578
From 873c9417fefc0ce7ce02f4fe4fd3b858b9b1781b Mon Sep 17 00:00:00 2001
8d3578
From: Jakub Hrozek <jhrozek@redhat.com>
8d3578
Date: Wed, 19 Jun 2019 22:03:16 +0200
8d3578
Subject: [PATCH 56/64] BE: Schedule the refresh interval from the finish time
8d3578
 of the last run
8d3578
8d3578
Related: https://pagure.io/SSSD/sssd/issue/4012
8d3578
8d3578
Changes scheduling the periodical task so that the next run is started
8d3578
relative to the previous run finish time, not start time to protect
8d3578
against cases where the refresh would take too long and run practically
8d3578
all the time.
8d3578
8d3578
Reviewed-by: Sumit Bose <sbose@redhat.com>
8d3578
(cherry picked from commit 576f3691a2d22322b08fb55fe74899d2ea4975d6)
8d3578
8d3578
Reviewed-by: Sumit Bose <sbose@redhat.com>
8d3578
---
8d3578
 src/providers/be_refresh.c | 2 +-
8d3578
 1 file changed, 1 insertion(+), 1 deletion(-)
8d3578
8d3578
diff --git a/src/providers/be_refresh.c b/src/providers/be_refresh.c
8d3578
index 50b023c3d..a9d4295ec 100644
8d3578
--- a/src/providers/be_refresh.c
8d3578
+++ b/src/providers/be_refresh.c
8d3578
@@ -157,7 +157,7 @@ errno_t be_refresh_ctx_init(struct be_ctx *be_ctx,
8d3578
     if (refresh_interval > 0) {
8d3578
         ret = be_ptask_create(be_ctx, be_ctx, refresh_interval, 30, 5, 0,
8d3578
                               refresh_interval, BE_PTASK_OFFLINE_SKIP,
8d3578
-                              BE_PTASK_SCHEDULE_FROM_LAST,
8d3578
+                              BE_PTASK_SCHEDULE_FROM_NOW,
8d3578
                               0,
8d3578
                               be_refresh_send, be_refresh_recv,
8d3578
                               ctx, "Refresh Records", NULL);
8d3578
-- 
8d3578
2.20.1
8d3578