projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reset error for retrieve. Remove sleep call
[idzebra-moved-to-github.git]
/
index
/
retrieve.c
diff --git
a/index/retrieve.c
b/index/retrieve.c
index
b8cd854
..
1ce3f6b
100644
(file)
--- a/
index/retrieve.c
+++ b/
index/retrieve.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
- * Revision 1.16 2002-04-04 20:50:37 adam
+ * Revision 1.18 2002-07-02 20:20:09 adam
+ * idzebra:{filename,score,size,localnumber} tags for XML
+ *
+ * Revision 1.17 2002/05/03 13:49:04 adam
+ * play with shellsort
+ *
+ * Revision 1.16 2002/04/04 20:50:37 adam
* Multi register works with record paths and data1 profile path
*
* Revision 1.15 2002/04/04 14:14:13 adam
* Multi register works with record paths and data1 profile path
*
* Revision 1.15 2002/04/04 14:14:13 adam
@@
-162,6
+168,7
@@
int zebra_record_fetch (ZebraHandle zh, int sysno, int score, ODR stream,
logf (LOG_DEBUG, "retrieve localno=%d score=%d", sysno, score);
retrieveCtrl.fh = &fc;
fc.fd = -1;
logf (LOG_DEBUG, "retrieve localno=%d score=%d", sysno, score);
retrieveCtrl.fh = &fc;
fc.fd = -1;
+ retrieveCtrl.fname = fname;
if (rec->size[recInfo_storeData] > 0)
{
retrieveCtrl.readf = zebra_record_int_read;
if (rec->size[recInfo_storeData] > 0)
{
retrieveCtrl.readf = zebra_record_int_read;
@@
-211,6
+218,9
@@
int zebra_record_fetch (ZebraHandle zh, int sysno, int score, ODR stream,
retrieveCtrl.diagnostic = 0;
retrieveCtrl.dh = zh->reg->dh;
retrieveCtrl.res = zh->res;
retrieveCtrl.diagnostic = 0;
retrieveCtrl.dh = zh->reg->dh;
retrieveCtrl.res = zh->res;
+ retrieveCtrl.rec_buf = 0;
+ retrieveCtrl.rec_len = -1;
+
(*rt->retrieve)(clientData, &retrieveCtrl);
*output_format = retrieveCtrl.output_format;
*rec_bufp = (char *) retrieveCtrl.rec_buf;
(*rt->retrieve)(clientData, &retrieveCtrl);
*output_format = retrieveCtrl.output_format;
*rec_bufp = (char *) retrieveCtrl.rec_buf;