From: Adam Dickmeiss Date: Thu, 21 Nov 2013 11:55:25 +0000 (+0100) Subject: ZOOM: stop fetching if present response has no records YAZ-710 X-Git-Tag: v5.0.4~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b0d1ba321a6bd82a2b511e4a707248ccc3c719e0;hp=9afc8581574131c6d3ecea36c85740c07714318c ZOOM: stop fetching if present response has no records YAZ-710 --- diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index f2517e0..e8304c3 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -1386,6 +1386,7 @@ static void handle_Z3950_records(ZOOM_connection c, Z_Records *sr, "ZOOM C generated. Present phase and no records"); ZOOM_record_cache_add(resultset, myrec, *start, syntax, elementSetName, schema, 0); + *count = 0; } } else if (present_phase) @@ -1398,6 +1399,7 @@ static void handle_Z3950_records(ZOOM_connection c, Z_Records *sr, "ZOOM C generated: Present response and no records"); ZOOM_record_cache_add(resultset, myrec, *start, syntax, elementSetName, schema, 0); + *count = 0; } } }