From: Sebastian Hammer Date: Wed, 18 Apr 2007 04:22:55 +0000 (+0000) Subject: Search still went ahead even if one target had a parse error.. bad news. X-Git-Tag: PAZPAR2.1.0.0~271 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1d69755278ec2562cf427cc2087b30fe053c3d97;p=pazpar2-moved-to-github.git Search still went ahead even if one target had a parse error.. bad news. --- diff --git a/src/logic.c b/src/logic.c index 5632307..48dab59 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1,4 +1,4 @@ -/* $Id: logic.c,v 1.6 2007-04-18 04:07:48 quinn Exp $ +/* $Id: logic.c,v 1.7 2007-04-18 04:22:55 quinn Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -1440,13 +1440,10 @@ char *search(struct session *se, char *query, char *filter) se->relevance = 0; for (cl = se->clients; cl; cl = cl->next) - { - if (client_prep_connection(cl)) - { - if (client_parse_query(cl) < 0) // Query must parse for all targets - return "QUERY"; - } - } + if (client_parse_query(cl) < 0) // Query must parse for all targets + return "QUERY"; + for (cl = se->clients; cl; cl = cl->next) + client_prep_connection(cl); return 0; }