]> git.sur5r.net Git - openldap/commitdiff
More for ITS#8460
authorHoward Chu <hyc@openldap.org>
Thu, 11 Aug 2016 16:27:35 +0000 (17:27 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 11 Aug 2016 16:27:35 +0000 (17:27 +0100)
accesslog can alter the timestamp on contextCSN updates

servers/slapd/overlays/accesslog.c

index 900bdcd46d307694960d40560e4140b7dc8395cb..64e174f4c6a79da3a85d0563bf3ae7501324afbe 100644 (file)
@@ -1959,6 +1959,10 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
                return SLAP_CB_CONTINUE;
                /* give this a unique timestamp */
                op->o_tincr++;
+               if ( op->o_tincr >= 1000000 ) {
+                       op->o_tincr -= 1000000;
+                       op->o_time++;
+               }
        }
 
        logop = accesslog_op2logop( op );