summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_ptask_private.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-11-21 12:34:54 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-12-08 10:39:45 +0100
commitbabaca78cc196e7e0dcc3e972347951a081159f2 (patch)
treeee5f135177631bb3a9b513d9169a06ac5968a205 /src/providers/dp_ptask_private.h
parent5dcf3ffa3aa228701a79556dc0b889dba0aac535 (diff)
downloadsssd-babaca78cc196e7e0dcc3e972347951a081159f2.tar.gz
sssd-babaca78cc196e7e0dcc3e972347951a081159f2.tar.xz
sssd-babaca78cc196e7e0dcc3e972347951a081159f2.zip
be_ptask: let backoff affect only period
With this patch the first and enabled delay values are respected. Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/providers/dp_ptask_private.h')
-rw-r--r--src/providers/dp_ptask_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/dp_ptask_private.h b/src/providers/dp_ptask_private.h
index 9c97fae7b..4144a3938 100644
--- a/src/providers/dp_ptask_private.h
+++ b/src/providers/dp_ptask_private.h
@@ -24,20 +24,20 @@
struct be_ptask {
struct tevent_context *ev;
struct be_ctx *be_ctx;
- time_t period;
+ time_t orig_period;
+ time_t first_delay;
time_t enabled_delay;
time_t random_offset;
unsigned int ro_seed;
time_t timeout;
- bool allow_backoff;
time_t max_backoff;
- time_t backoff_delay;
enum be_ptask_offline offline;
be_ptask_send_t send_fn;
be_ptask_recv_t recv_fn;
void *pvt;
const char *name;
+ time_t period; /* computed period */
time_t next_execution; /* next time when the task is scheduled */
time_t last_execution; /* last time when send was called */
struct tevent_req *req; /* active tevent request */