Call fixed RecordCache::add MP-499
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Nov 2013 13:24:23 +0000 (14:24 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Nov 2013 13:24:23 +0000 (14:24 +0100)
This ensures that proper comspec is used for cached records.

src/filter_session_shared.cpp

index 00b05c9..0ee10fb 100644 (file)
@@ -1128,8 +1128,7 @@ void yf::SessionShared::Frontend::present(mp::Package &package,
             found_set->m_record_cache.add(
                 odr,
                 b_resp->records->u.databaseOrSurDiagnostics,
-                *req->resultSetStartPoint,
-                *f_resp->numberOfRecordsReturned);
+                *req->resultSetStartPoint, p_req->recordComposition);
         }
         bc->release_backend(found_backend);
     }