]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Optimization: Do not create adaptation history to check whether it is empty.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 30 Mar 2011 23:09:07 +0000 (17:09 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 30 Mar 2011 23:09:07 +0000 (17:09 -0600)
src/adaptation/icap/ModXact.cc

index acb6147c2d3726c6ec327eb57e7f096246363525..48e548c3f22416ad5c39437210ab51e8a4b11ece 100644 (file)
@@ -1301,8 +1301,7 @@ void Adaptation::Icap::ModXact::makeRequestHeaders(MemBuf &buf)
 
     // share the cross-transactional database records if needed
     if (Adaptation::Config::masterx_shared_name) {
-        // XXX: do not create history here: there can be no values in empty ah
-        Adaptation::History::Pointer ah = request->adaptHistory(true);
+        Adaptation::History::Pointer ah = request->adaptHistory(false);
         if (ah != NULL) {
             String name, value;
             if (ah->getXxRecord(name, value)) {