projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3731bda
)
Fixed bug in zebra_recid_to_sysno (handle non isamb case)
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 1 Dec 2007 21:34:10 +0000
(21:34 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 1 Dec 2007 21:34:10 +0000
(21:34 +0000)
index/zsets.c
patch
|
blob
|
history
diff --git
a/index/zsets.c
b/index/zsets.c
index
19a6cf8
..
19fb36a
100644
(file)
--- 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++)
{