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
Fix bug #249: rstemp sets fail. Problem was that rset files were
[idzebra-moved-to-github.git]
/
index
/
zinfo.c
diff --git
a/index/zinfo.c
b/index/zinfo.c
index
91e05d1
..
3a97df9
100644
(file)
--- a/
index/zinfo.c
+++ b/
index/zinfo.c
@@
-1,6
+1,6
@@
-/* $Id: zinfo.c,v 1.39 2004-08-06 13:36:23 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: zinfo.c,v 1.44 2005-01-16 23:33:31 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-20,12
+20,13
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
02111-1307, USA.
*/
-#include <stdlib.h>
+#include <sys/types.h>
#include <assert.h>
#include <assert.h>
+#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <string.h>
#include <time.h>
-#include <zebraver.h>
+#include <idzebra/version.h>
#include "zinfo.h"
#define ZINFO_DEBUG 0
#include "zinfo.h"
#define ZINFO_DEBUG 0
@@
-198,7
+199,7
@@
void zebraExplain_flush (ZebraExplainInfo zei, void *handle)
void zebraExplain_close (ZebraExplainInfo zei)
{
#if ZINFO_DEBUG
void zebraExplain_close (ZebraExplainInfo zei)
{
#if ZINFO_DEBUG
- yaz_log (LOG_LOG, "zebraExplain_close");
+ yaz_log (YLOG_LOG, "zebraExplain_close");
#endif
if (!zei)
return;
#endif
if (!zei)
return;
@@
-332,7
+333,7
@@
ZebraExplainInfo zebraExplain_open (
NMEM nmem = nmem_create ();
#if ZINFO_DEBUG
NMEM nmem = nmem_create ();
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_open wr=%d", writeFlag);
+ yaz_log (YLOG_LOG, "zebraExplain_open wr=%d", writeFlag);
#endif
zei = (ZebraExplainInfo) nmem_malloc (nmem, sizeof(*zei));
zei->write_flag = writeFlag;
#endif
zei = (ZebraExplainInfo) nmem_malloc (nmem, sizeof(*zei));
zei->write_flag = writeFlag;
@@
-380,7
+381,7
@@
ZebraExplainInfo zebraExplain_open (
if (!zei->data1_target)
#endif
{
if (!zei->data1_target)
#endif
{
- logf (LOG_FATAL, "Explain schema missing. Check profilePath");
+ yaz_log (YLOG_FATAL, "Explain schema missing. Check profilePath");
nmem_destroy (zei->nmem);
return 0;
}
nmem_destroy (zei->nmem);
return 0;
}
@@
-462,7
+463,7
@@
ZebraExplainInfo zebraExplain_open (
np = np->child;
assert (np && np->which == DATA1N_data);
zei->runNumber = atoi_zn (np->u.data.data, np->u.data.len);
np = np->child;
assert (np && np->which == DATA1N_data);
zei->runNumber = atoi_zn (np->u.data.data, np->u.data.len);
- yaz_log (LOG_DEBUG, "read runnumber=" ZINT_FORMAT, zei->runNumber);
+ yaz_log (YLOG_DEBUG, "read runnumber=" ZINT_FORMAT, zei->runNumber);
*zdip = NULL;
}
rec_rm (&trec);
*zdip = NULL;
}
rec_rm (&trec);
@@
-487,7
+488,7
@@
ZebraExplainInfo zebraExplain_open (
"</></>\n" );
if (!zei->data1_target)
{
"</></>\n" );
if (!zei->data1_target)
{
- logf (LOG_FATAL, "Explain schema missing. Check profilePath");
+ yaz_log (YLOG_FATAL, "Explain schema missing. Check profilePath");
nmem_destroy (zei->nmem);
return 0;
}
nmem_destroy (zei->nmem);
return 0;
}
@@
-596,7
+597,7
@@
static void zebraExplain_readAttributeDetails (ZebraExplainInfo zei,
node_use->u.data.len);
(*zsuip)->info.ordinal = atoi_n (node_ordinal->u.data.data,
node_ordinal->u.data.len);
node_use->u.data.len);
(*zsuip)->info.ordinal = atoi_n (node_ordinal->u.data.data,
node_ordinal->u.data.len);
- logf (LOG_DEBUG, "set=%d use=%d ordinal=%d",
+ yaz_log (YLOG_DEBUG, "set=%d use=%d ordinal=%d",
(*zsuip)->info.set, (*zsuip)->info.use, (*zsuip)->info.ordinal);
zsuip = &(*zsuip)->next;
}
(*zsuip)->info.set, (*zsuip)->info.use, (*zsuip)->info.ordinal);
zsuip = &(*zsuip)->next;
}
@@
-703,19
+704,19
@@
int zebraExplain_curDatabase (ZebraExplainInfo zei, const char *database)
if (!zdi)
return -1;
#if ZINFO_DEBUG
if (!zdi)
return -1;
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_curDatabase: %s", database);
+ yaz_log (YLOG_LOG, "zebraExplain_curDatabase: %s", database);
#endif
if (zdi->readFlag)
{
#if ZINFO_DEBUG
#endif
if (zdi->readFlag)
{
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_readDatabase: %s", database);
+ yaz_log (YLOG_LOG, "zebraExplain_readDatabase: %s", database);
#endif
zebraExplain_readDatabase (zei, zdi);
}
if (zdi->attributeDetails->readFlag)
{
#if ZINFO_DEBUG
#endif
zebraExplain_readDatabase (zei, zdi);
}
if (zdi->attributeDetails->readFlag)
{
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_readAttributeDetails: %s", database);
+ yaz_log (YLOG_LOG, "zebraExplain_readAttributeDetails: %s", database);
#endif
zebraExplain_readAttributeDetails (zei, zdi->attributeDetails);
}
#endif
zebraExplain_readAttributeDetails (zei, zdi->attributeDetails);
}
@@
-787,7
+788,7
@@
int zebraExplain_newDatabase (ZebraExplainInfo zei, const char *database,
database_n = database;
#if ZINFO_DEBUG
database_n = database;
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_newDatabase: %s", database);
+ yaz_log (YLOG_LOG, "zebraExplain_newDatabase: %s", database);
#endif
assert (zei);
for (zdi = zei->databaseInfo; zdi; zdi=zdi->next)
#endif
assert (zei);
for (zdi = zei->databaseInfo; zdi; zdi=zdi->next)
@@
-916,7
+917,7
@@
static void zebraExplain_writeCategoryList (ZebraExplainInfo zei,
node_categoryList = zcl->data1_categoryList;
#if ZINFO_DEBUG
node_categoryList = zcl->data1_categoryList;
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_writeCategoryList");
+ yaz_log (YLOG_LOG, "zebraExplain_writeCategoryList");
#endif
drec = createRecord (zei->records, &sysno);
#endif
drec = createRecord (zei->records, &sysno);
@@
-970,7
+971,7
@@
static void zebraExplain_writeAttributeDetails (ZebraExplainInfo zei,
zad->dirty = 0;
#if ZINFO_DEBUG
zad->dirty = 0;
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_writeAttributeDetails");
+ yaz_log (YLOG_LOG, "zebraExplain_writeAttributeDetails");
#endif
drec = createRecord (zei->records, &zad->sysno);
#endif
drec = createRecord (zei->records, &zad->sysno);
@@
-1098,7
+1099,7
@@
static void zebraExplain_writeDatabase (ZebraExplainInfo zei,
zdi->dirty = 0;
#if ZINFO_DEBUG
zdi->dirty = 0;
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_writeDatabase %s", zdi->databaseName);
+ yaz_log (YLOG_LOG, "zebraExplain_writeDatabase %s", zdi->databaseName);
#endif
drec = createRecord (zei->records, &zdi->sysno);
assert (zdi->data1_database);
#endif
drec = createRecord (zei->records, &zdi->sysno);
assert (zdi->data1_database);
@@
-1182,7
+1183,7
@@
static void zebraExplain_writeAttributeSet (ZebraExplainInfo zei,
attset = data1_attset_search_id (zei->dh, entp->value);
#if ZINFO_DEBUG
attset = data1_attset_search_id (zei->dh, entp->value);
#if ZINFO_DEBUG
- logf (LOG_LOG, "zebraExplain_writeAttributeSet %s",
+ yaz_log (YLOG_LOG, "zebraExplain_writeAttributeSet %s",
attset ? attset->name : "<unknown>");
#endif
attset ? attset->name : "<unknown>");
#endif
@@
-1459,7
+1460,7
@@
static void att_loadset(void *p, const char *n, const char *name)
{
data1_handle dh = (data1_handle) p;
if (!data1_get_attset (dh, name))
{
data1_handle dh = (data1_handle) p;
if (!data1_get_attset (dh, name))
- logf (LOG_WARN, "Directive attset failed for %s", name);
+ yaz_log (YLOG_WARN, "Directive attset failed for %s", name);
}
void zebraExplain_loadAttsets (data1_handle dh, Res res)
}
void zebraExplain_loadAttsets (data1_handle dh, Res res)