]> git.sur5r.net Git - openldap/commitdiff
ITS#4423, fix sessionlog lower bound in playlog
authorHoward Chu <hyc@openldap.org>
Tue, 2 May 2006 05:08:59 +0000 (05:08 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 2 May 2006 05:08:59 +0000 (05:08 +0000)
servers/slapd/overlays/syncprov.c

index defe5f11ed8b639a25a170b3c6b0878f3036d14f..798924fb1f016f8c1431d6a9ad334edc648144d8 100644 (file)
@@ -1346,7 +1346,7 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
         * unlock the list mutex.
         */
        for ( se=sl->sl_head; se; se=se->se_next ) {
-               if ( ber_bvcmp( &se->se_csn, oldcsn ) < 0 ) continue;
+               if ( ber_bvcmp( &se->se_csn, oldcsn ) <= 0 ) continue;
                if ( ber_bvcmp( &se->se_csn, ctxcsn ) > 0 ) break;
                if ( se->se_tag == LDAP_REQ_DELETE ) {
                        j = i;