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 13:44:18 +0200
commite9ca61c12da6f16ce6269bf104ddf5b4c7c5760b (patch)
tree66c4fc7f67ac6e8ebf813213b4b7294f2a9b93ea /src/providers/ldap/ldap_id_cleanup.c
parent552f9bc07d15c371090a5514bb1821a7e4505203 (diff)
downloadsssd-e9ca61c12da6f16ce6269bf104ddf5b4c7c5760b.tar.gz
sssd-e9ca61c12da6f16ce6269bf104ddf5b4c7c5760b.tar.xz
sssd-e9ca61c12da6f16ce6269bf104ddf5b4c7c5760b.zip
ptask: Allow adding random_offset to scheduled execution time
Reviewed-by: Jakub Hrozek <jhrozek@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 b3c9901b7..9987b1791 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);