From 8a44ba22afc4637d2a981ecd339a767749f8413e Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> Date: Sat, 29 Aug 2015 19:44:33 +0100 Subject: [PATCH] ITS#8232 avoid redundant abandon processing --- servers/slapd/connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index c8cb2b7738..32326fcb18 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -741,6 +741,9 @@ static void connection_abandon( Connection *c ) SlapReply rs = {REP_RESULT}; next = LDAP_STAILQ_NEXT( o, o_next ); + /* don't abandon an op twice */ + if ( o->o_abandon ) + continue; op.orn_msgid = o->o_msgid; o->o_abandon = 1; op.o_bd = frontendDB; -- GitLab