zoom: honor piggyback setting
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Aug 2011 20:22:57 +0000 (22:22 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Aug 2011 20:22:57 +0000 (22:22 +0200)
Makes some SRU targets behave that insist on maximumRecords > 0,
but also increases performance.

src/filter_zoom.cpp

index 1c2ff9a..8d623d4 100644 (file)
@@ -738,6 +738,9 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
     if (m_p->apdu_log) 
         b->set_option("apdulog", "1");
 
+    if (sptr->piggyback)
+        b->set_option("count", "10");
+
     std::string authentication = sptr->authentication;
     std::string proxy = sptr->cfProxy;