X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fzinfo.c;h=e13b8c35985a25c66ea360c6664c9359f7824067;hb=11de0965b256736f01e55b17a603eb9ebad5ec12;hp=60ae41525924113307a7914ac535aeff2214cae0;hpb=44082770642275dd993aa621d9dc5c5b0dc454d3;p=idzebra-moved-to-github.git diff --git a/index/zinfo.c b/index/zinfo.c index 60ae415..e13b8c3 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,4 +1,4 @@ -/* $Id: zinfo.c,v 1.49 2005-08-18 12:50:18 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; } }