]> git.sur5r.net Git - openldap/commitdiff
More for batched write
authorHoward Chu <hyc@openldap.org>
Sun, 30 Aug 2015 04:14:17 +0000 (05:14 +0100)
committerHoward Chu <hyc@openldap.org>
Sun, 30 Aug 2015 04:14:17 +0000 (05:14 +0100)
servers/slapd/syncrepl.c

index 109426abb1d5816655ddc147b632d1860159ab09..8df18f10109959bbfed6b4746848c6a16a55dea2 100644 (file)
@@ -1195,6 +1195,11 @@ do_syncrep2(
                        {
                                rc = syncrepl_updateCookie( si, op, &syncCookie );
                        }
+                       if ( si->si_refreshCount ) {
+                               LDAP_SLIST_REMOVE( &op->o_extra, si->si_refreshTxn, OpExtra, oe_next );
+                               op->o_bd->bd_info->bi_op_txn( op, SLAP_TXN_COMMIT, &si->si_refreshTxn );
+                       }
+                       si->si_refreshEnd = slap_get_time();
                        if ( err == LDAP_SUCCESS
                                && si->si_logstate == SYNCLOG_FALLBACK ) {
                                si->si_logstate = SYNCLOG_LOGGING;