+// $OpenLDAP$
/*
- * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "LDAPMessageQueue.h"
#include "LDAPResult.h"
+using namespace std;
+
LDAPDeleteRequest::LDAPDeleteRequest( const LDAPDeleteRequest& req) :
LDAPRequest(req){
DEBUG(LDAP_DEBUG_CONSTRUCT,
LDAPDeleteRequest::~LDAPDeleteRequest(){
DEBUG(LDAP_DEBUG_DESTROY,
"LDAPDeleteRequest::~LDAPDeleteRequest()" << endl);
- // TODO -- flush the entire cache here? or does this invalidate
- // cached searches that may have found the deleted entry.
- m_connection->uncache_entry(m_dn);
}
LDAPMessageQueue* LDAPDeleteRequest::sendRequest(){
LDAPControl** tmpClCtrls=m_cons->getClCtrlsArray();
int err=ldap_delete_ext(m_connection->getSessionHandle(),m_dn.c_str(),
tmpSrvCtrls, tmpClCtrls ,&msgID);
- ldap_controls_free(tmpSrvCtrls);
- ldap_controls_free(tmpClCtrls);
+ LDAPControlSet::freeLDAPControlArray(tmpSrvCtrls);
+ LDAPControlSet::freeLDAPControlArray(tmpClCtrls);
if(err != LDAP_SUCCESS){
throw LDAPException(err);
}else{