From: Ondřej Kuzník Date: Tue, 25 Jan 2022 14:33:38 +0000 (+0000) Subject: ITS#9789 slapo-syncprov: Reset op->o_counters every time we migrate to a new thread X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebc7369727d0e593811293805696ad897edfeb52;p=thirdparty%2Fopenldap.git ITS#9789 slapo-syncprov: Reset op->o_counters every time we migrate to a new thread --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index f6aaca497c..d1d3b1c104 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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;