[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#8295) Windows ldap_pvt_gettime is broken
Full_Name: Howard Chu
Version: 2.4
OS: Win32
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (78.155.231.14)
Submitted by: hyc
ldap_pvt_gettime is used to to generate CSNs with microsecond precision. On
Windows it goes thru some gyrations to calculate microseconds since the normal
SystemTime only has a resolution of 10-15 milliseconds. Unfortunately it doesn't
properly detect when the microsecond counter wraps around back to zero, so it
can occasionally return timestamps 1 second in the past.