]> 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, 2 Feb 2022 17:12:19 +0000 (17:12 +0000)
servers/slapd/overlays/syncprov.c

index 364ee8ada07e7f5246e94382d7ee6f33c0ed3f48..36978d609a3e0de51f952301b80553165da2d02f 100644 (file)
@@ -1075,6 +1075,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;