[389-devel] Please review: [Bug 629681] Retro Changelog trimming does not behave as expected

Noriko Hosoi nhosoi at redhat.com
Thu Oct 21 01:45:04 UTC 2010



https://bugzilla.redhat.com/show_bug.cgi?id=645061

https://bugzilla.redhat.com/attachment.cgi?id=454711&action=diff
https://bugzilla.redhat.com/attachment.cgi?id=454711&action=edit

Description: As reporter Oliver Thalmann (oliver.thalmann at chuv.ch)
pointed out, retrocl_init_trimming was repeating the retrocl_
housekeeping event every 5000 minutes instead of 5 minutes.
This patch fixes it to 5 minutes.

Files:
  ldap/servers/plugins/retrocl/retrocl.h
  ldap/servers/plugins/retrocl/retrocl_trim.c

Thanks to Oliver Thalmann for his debugging.  As he figured out,
retrocl_init_trimming was passing the interval in microseconds not in
milliseconds.
/*
  * slapi_eq_repeat: cause an event to happen repeatedly.
  *
  * Arguments:
  *  fn: the function to call
  *  arg: an argument to pass to the called function
  *  when: the time that the function should first be called
  *  interval: the amount of time (in milliseconds) between
  *            successive calls to the function
  * Returns:
  *  slapi_eq_context - a handle to an opaque object which
  *  the caller can use to refer to this particular scheduled
  */
Slapi_Eq_Context
slapi_eq_repeat(slapi_eq_fn_t fn, void *arg, time_t when, unsigned long
interval)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6646 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-devel/attachments/20101020/6b63b718/attachment.bin 


More information about the 389-devel mailing list