X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzinfo.c;h=a6e52cdda9bdefb565a3bf63440df1915b26f5f8;hb=5e7ca59d5cff2e9ee4710bb9a10cdb9434b9ad5a;hp=cd8bb3f765521b76b3e77bd2fee580e859e84da9;hpb=f3f94568869a1ae0402bfa4f0dea4d80b09695df;p=idzebra-moved-to-github.git diff --git a/index/zinfo.c b/index/zinfo.c index cd8bb3f..a6e52cd 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 1994-2010 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -767,12 +767,12 @@ int zebraExplain_removeDatabase(ZebraExplainInfo zei, void *update_handle) rec = rec_get(zei->records, zad->sysno); (*zei->updateFunc)(zei->updateHandle, rec, 0); - rec_free(&rec); + rec_del(zei->records, &rec); } /* remove database record keys and delete it */ rec = rec_get(zei->records, zdi->sysno); (*zei->updateFunc)(zei->updateHandle, rec, 0); - rec_free(&rec); + rec_del(zei->records, &rec); /* remove from list */ *zdip = zdi->next; @@ -995,7 +995,7 @@ static void zebraExplain_writeCategoryList(ZebraExplainInfo zei, assert(zcl); if (!zcl->dirty) return ; - zcl->dirty = 1; + zcl->dirty = 0; node_categoryList = zcl->data1_categoryList; #if ZINFO_DEBUG @@ -1638,6 +1638,7 @@ void zebraExplain_loadAttsets(data1_handle dh, Res res) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab