X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzsets.c;h=ac5177c03f30b9a68952d3fd160b2b1945d10201;hb=19f3ea2eccaeb7e16c2807b07c6243f66405c6bc;hp=5944d76b2d711d89698d7f4c62e485a266ba22e5;hpb=b2084f54a96f78eede08dda6f98d5ee1f502e91b;p=idzebra-moved-to-github.git diff --git a/index/zsets.c b/index/zsets.c index 5944d76..ac5177c 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -1,4 +1,4 @@ -/* $Id: zsets.c,v 1.129 2007-12-04 11:13:17 adam Exp $ +/* $Id: zsets.c,v 1.131 2007-12-28 10:29:40 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -1307,7 +1307,7 @@ static ZEBRA_RES zebra_recid_to_sysno(ZebraHandle zh, int sysnos_offset = 0; int i; - if (!zh->reg->isamb) + if (!zh->reg->isamb || !zh->m_segment_indexing) { if (sysnos_offset < *no_sysnos) *sysnos = recid; @@ -1367,11 +1367,9 @@ static ZEBRA_RES zebra_recid_to_sysno(ZebraHandle zh, while (r && key_found.mem[0] == recid) { if (sysnos_offset < *no_sysnos) - sysnos[sysnos_offset] = + sysnos[sysnos_offset++] = key_found.mem[key_found.len-1]; - r = isamb_pp_read(pt, &key_found); - sysnos_offset++; } isamb_pp_close(pt); }