]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9789 slapo-syncprov: Reset op->o_counters every time we migrate to a new thread
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 25 Jan 2022 14:33:38 +0000 (14:33 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 26 Jan 2022 18:55:41 +0000 (18:55 +0000)
servers/slapd/overlays/syncprov.c

index f6aaca497cfc73bca7aea8aa42dd68b1446449b1..d1d3b1c104bc65d9b13ce3419c5366fbc0911d97 100644 (file)
@@ -1077,6 +1077,7 @@ syncprov_qtask( void *ctx, void *arg )
        op->o_tmpmemctx = slap_sl_mem_create(SLAP_SLAB_SIZE, SLAP_SLAB_STACK, ctx, 1);
        op->o_tmpmfuncs = &slap_sl_mfuncs;
        op->o_threadctx = ctx;
+       operation_counter_init( op, ctx );
 
        /* syncprov_qplay expects a fake db */
        be = *so->s_op->o_bd;