session_shared: don't reset timestap for query match
[metaproxy-moved-to-github.git] / src / filter_session_shared.cpp
index d733f5e..cccaee8 100644 (file)
@@ -74,7 +74,7 @@ namespace metaproxy_1 {
         public:
             std::string m_result_set_id;
             Databases m_databases;
-            int m_result_set_size;
+            Odr_int m_result_set_size;
             yazpp_1::Yaz_Z_Query m_query;
             time_t m_time_last_use;
             void timestamp();
@@ -667,7 +667,6 @@ restart:
                             found_set = *set_it;
                             found_backend = *it;
                             bc->use_backend(found_backend);
-                            found_set->timestamp();
                             // found matching set. No need to search again
                             return;
                         }
@@ -1069,7 +1068,7 @@ yf::SessionShared::Rep::Rep()
     m_resultset_max = 10;
     m_session_ttl = 90;
     m_optimize_search = true;
-    m_restart = true;
+    m_restart = false;
     m_session_max = 100;
 }