Treat resultCount <0 as zero
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 10 Sep 2002 11:30:54 +0000 (11:30 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 10 Sep 2002 11:30:54 +0000 (11:30 +0000)
src/yaz-proxy.cpp

index b1d6e0e..61fc748 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2001, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-proxy.cpp,v 1.32 2002-08-28 13:01:41 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.33 2002-09-10 11:30:54 adam Exp $
  */
 
 #include <assert.h>
@@ -303,7 +303,7 @@ Z_APDU *Yaz_Proxy::result_set_optimize(Z_APDU *apdu)
            return new_apdu;
        }
        else if (m_client->m_last_resultCount >= *sr->largeSetLowerBound ||
-           m_client->m_last_resultCount == 0)
+           m_client->m_last_resultCount <= 0)
        {
             // large set. Return pseudo-search response immediately
            yaz_log (LOG_LOG, "Optimizing search for large set");