From: Adam Dickmeiss Date: Sat, 1 Dec 2007 21:34:10 +0000 (+0000) Subject: Fixed bug in zebra_recid_to_sysno (handle non isamb case) X-Git-Tag: ZEBRA.2.0.20~49 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=cd405b18db3526be1855d7e14a598616237a4b2e Fixed bug in zebra_recid_to_sysno (handle non isamb case) --- diff --git a/index/zsets.c b/index/zsets.c index 19a6cf8..19fb36a 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -1,4 +1,4 @@ -/* $Id: zsets.c,v 1.126 2007-11-30 12:19:09 adam Exp $ +/* $Id: zsets.c,v 1.127 2007-12-01 21:34:10 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -1307,7 +1307,13 @@ static ZEBRA_RES zebra_recid_to_sysno(ZebraHandle zh, int sysnos_offset = 0; int i; - if (zh->reg->isamb) + if (!zh->reg->isamb) + { + if (sysnos_offset < *no_sysnos) + *sysnos = recid; + sysnos_offset++; + } + else { for (i = 0; res == ZEBRA_OK && i < num_bases; i++) {