summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_id_cleanup.c
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2014-07-07 16:46:18 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-31 11:50:24 +0200
commitab0ab5a30379b84d6e05e1f2dc457bd1dd97401f (patch)
tree53664c5eaa90baeef167a097f9522fa84abce548 /src/providers/ldap/ldap_id_cleanup.c
parentb47449d8596d9573ff13e74b6984d080b414715a (diff)
downloadsssd-ab0ab5a30379b84d6e05e1f2dc457bd1dd97401f.tar.gz
sssd-ab0ab5a30379b84d6e05e1f2dc457bd1dd97401f.tar.xz
sssd-ab0ab5a30379b84d6e05e1f2dc457bd1dd97401f.zip
ptask: Allow adding random_offset to scheduled execution time
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/providers/ldap/ldap_id_cleanup.c')
-rw-r--r--src/providers/ldap/ldap_id_cleanup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c
index 6b0bead28..0c473da30 100644
--- a/src/providers/ldap/ldap_id_cleanup.c
+++ b/src/providers/ldap/ldap_id_cleanup.c
@@ -86,9 +86,10 @@ errno_t ldap_setup_cleanup(struct sdap_id_ctx *id_ctx,
}
ret = be_ptask_create_sync(sdom, id_ctx->be, period, first_delay,
- 5 /* enabled delay */, period /* timeout */,
- BE_PTASK_OFFLINE_SKIP, ldap_cleanup_task,
- cleanup_ctx, name, &sdom->cleanup_task);
+ 5 /* enabled delay */, 0 /* random offset */,
+ period /* timeout */, BE_PTASK_OFFLINE_SKIP,
+ ldap_cleanup_task, cleanup_ctx, name,
+ &sdom->cleanup_task);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE, "Unable to initialize cleanup periodic "
"task for %s\n", sdom->dom->name);