From acea44af0243d71fe535d88d9d017664891838b0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Jul 2006 21:36:44 +0000 Subject: [PATCH] ITS#4622 additional fix --- servers/slapd/syncrepl.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 919d73836c..d0c94978cb 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -953,15 +953,14 @@ do_syncrep2( &syncCookie.ctxcsn, &text ); } - if ( !BER_BVISNULL( &syncCookie.ctxcsn ) && - match < 0 ) - { - rc = syncrepl_updateCookie( si, op, psub, &syncCookie); - } + if ( match < 0 ) { + if ( si->si_refreshPresent == 1 ) { + syncrepl_del_nonpresent( op, si, NULL, &syncCookie.ctxcsn ); + } - if ( si->si_refreshPresent == 1 ) { - if ( match < 0 ) { - syncrepl_del_nonpresent( op, si, NULL, NULL ); + if ( !BER_BVISNULL( &syncCookie.ctxcsn )) + { + rc = syncrepl_updateCookie( si, op, psub, &syncCookie); } } -- 2.39.5