1 /* abandon.c - abandon request handler for back-asyncmeta */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2016-2018 The OpenLDAP Foundation.
6 * Portions Copyright 2016 Symas Corporation.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in the file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
19 * This work was developed by Symas Corporation
20 * based on back-meta module for inclusion in OpenLDAP Software.
21 * This work was sponsored by Ericsson. */
27 #include <ac/string.h>
28 #include <ac/socket.h>
31 #include "../back-ldap/back-ldap.h"
32 #include "back-asyncmeta.h"
35 /* function is unused */
37 asyncmeta_back_abandon( Operation *op, SlapReply *rs )
41 /* Find the ops being abandoned */
42 ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
44 LDAP_STAILQ_FOREACH( t_op, &op->o_conn->c_ops, o_next ) {
45 if ( t_op->o_msgid == op->orn_msgid ) {
49 ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );