[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: ITS#2512 wrong order of entries in replog file



> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of Kurt@OpenLDAP.org

> You assume the order in which they are stamped is the "correct"
> (commit) order.  This is not true.  It is still possible that
> an add stamped after another needs to be processed before that
> other.

I found a better approach, it required no change at all to slurpd. By putting
the invocation of replog() into a callback, the log is guaranteed to be
written before the result is sent to the client. So a client using
synchronous requests will never have its request sequence logged out of
order.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support