X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fzinfo.c;h=e13b8c35985a25c66ea360c6664c9359f7824067;hb=11de0965b256736f01e55b17a603eb9ebad5ec12;hp=3816e5115581e3602a8ad9cd078377fbd5597c7c;hpb=3d6d9a44b38717e7e9a2c64b68db895998d4de82;p=idzebra-moved-to-github.git diff --git a/index/zinfo.c b/index/zinfo.c index 3816e51..e13b8c3 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,4 +1,4 @@ -/* $Id: zinfo.c,v 1.48 2005-08-09 12:30:46 adam Exp $ +/* $Id: zinfo.c,v 1.50 2005-08-26 10:13:31 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -1416,7 +1416,9 @@ int zebraExplain_trav_ord(ZebraExplainInfo zei, void *handle, } int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord, - const char **db, int *set, int *use) + int *index_type, + const char **db, + int *set, int *use) { struct zebDatabaseInfoB *zdb; for (zdb = zei->databaseInfo; zdb; zdb = zdb->next) @@ -1426,9 +1428,14 @@ int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord, if (zsui->info.which == ZEB_SU_SET_USE && zsui->info.ordinal == ord) { - *db = zdb->databaseName; - *set = zsui->info.u.su.set; - *use = zsui->info.u.su.use; + if (db) + *db = zdb->databaseName; + if (set) + *set = zsui->info.u.su.set; + if (use) + *use = zsui->info.u.su.use; + if (index_type) + *index_type = zsui->info.index_type; return 0; } } @@ -1562,6 +1569,7 @@ RecordAttr *rec_init_attr (ZebraExplainInfo zei, Record rec) recordAttr->recordSize = 0; recordAttr->recordOffset = 0; recordAttr->runNumber = zei->runNumber; + recordAttr->staticrank = 0; return recordAttr; }