From c36ba47d8eb3202dfad0233c47c3e707c49bfd93 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 10 Sep 2002 11:30:54 +0000 Subject: [PATCH] Treat resultCount <0 as zero --- src/yaz-proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index b1d6e0e..61fc748 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -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 @@ -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"); -- 1.7.10.4