Quantcast
Channel: comm-central Changelog
Viewing all articles
Browse latest Browse all 20

[default] Bug 1460871 Add request number for each ldap lookup to avoid adding results from older queries; r?jorgk

$
0
0
changeset40b9257bd7e6
branchdefault
bookmark
tagtip
userJanHorak
descriptionBug 1460871 Add request number for each ldap lookup to avoid adding results from older queries; r?jorgk

The waiting until the query ends and ignoring results could lead to ignoring results from subsequent
lookup. I've removed the code which waited for the all results and replaced it by request number.
Every LDAP operation now has the request number set during creating and its value is compared to the
current request number (static variable). If they don't match the result is ignored in
nsAbQueryLDAPMessageListener::OnLDAPMessage.

MozReview-Commit-ID: 9ShVyHmCNS7
filesldap/xpcom/public/nsILDAPOperation.idl
ldap/xpcom/src/nsLDAPOperation.cpp
ldap/xpcom/src/nsLDAPOperation.h
mailnews/addrbook/src/nsAbLDAPDirectoryQuery.cpp
mailnews/addrbook/src/nsAbLDAPListenerBase.cpp
mailnews/addrbook/src/nsAbLDAPListenerBase.h

Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images