X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=rset%2Frsmultiandor.c;h=cdf20236ab1d70e0d1d1b8ffd3b12349b5245d23;hp=49bcea2496722735e81919c02bbf141cc3ef046a;hb=89d3a004b7c651fd5673abfc192e1472dc4d4197;hpb=651974e51cda5f503b3cbecbe11370a329d6b7e4 diff --git a/rset/rsmultiandor.c b/rset/rsmultiandor.c index 49bcea2..cdf2023 100644 --- a/rset/rsmultiandor.c +++ b/rset/rsmultiandor.c @@ -1,5 +1,5 @@ -/* $Id: rsmultiandor.c,v 1.23 2006-07-04 14:10:31 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: rsmultiandor.c,v 1.27 2007-01-15 15:10:19 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ @@ -442,7 +442,6 @@ static int r_read_or (RSFD rfd, void *buf, TERMID *term) *term = rset->term; else *term = it->term; - assert(*term); } (mrfd->hits)++; rdres = rset_read(it->fd, it->buf, &it->term); @@ -495,9 +494,7 @@ static int r_read_and (RSFD rfd, void *buf, TERMID *term) mintail = i; if (kctrl->get_segment) - { - /* segments enabled */ - + { /* segments enabled */ zint segment = kctrl->get_segment(p->items[i].buf); /* store segment if not stored already */ if (!p->segment && segment) @@ -535,7 +532,7 @@ static int r_read_and (RSFD rfd, void *buf, TERMID *term) (p->hits)++; return 1; } - /* not tailing, forward until all reocrds match, and set up */ + /* not tailing, forward until all records match, and set up */ /* as tails. the earlier 'if' will then return the hits */ if (p->eof) return 0; /* nothing more to see */