]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPDeleteRequest.cpp
Added client side caching. (Commited by: Jeff Costlow <j.costlow@f5.com>)
[openldap] / contrib / ldapc++ / src / LDAPDeleteRequest.cpp
index 0cc34e6ac1becdc7a4a958c7052f2eda494b46af..1e914bc0dac51a7fe866c1003cbc755797df9678 100644 (file)
@@ -31,8 +31,11 @@ LDAPDeleteRequest::LDAPDeleteRequest(const string& dn,
 }
 
 LDAPDeleteRequest::~LDAPDeleteRequest(){
-       DEBUG(LDAP_DEBUG_DESTROY,
-            "LDAPDeleteRequest::~LDAPDeleteRequest()" << endl);
+    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(){