X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzsets.c;h=0c71974ed2b7384137afa9e1d23dcc5b80c0922b;hb=af7bc27d33843a8e667022f24589450c39f907f2;hp=9cb1ca6b4f189474825be240d346212f9497774b;hpb=774c155f12ee6473f38ece849a401dd8426178d3;p=idzebra-moved-to-github.git diff --git a/index/zsets.c b/index/zsets.c index 9cb1ca6..0c71974 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zsets.c,v $ - * Revision 1.10 1995-10-30 15:08:08 adam + * Revision 1.11 1996-12-23 15:30:46 adam + * Work on truncation. + * Bug fix: result sets weren't deleted after server shut down. + * + * Revision 1.10 1995/10/30 15:08:08 adam * Bug fixes. * * Revision 1.9 1995/10/17 18:02:14 adam @@ -79,6 +83,20 @@ ZServerSet *resultSetGet (ZServerInfo *zi, const char *name) return NULL; } +void resultSetDestroy (ZServerInfo *zi) +{ + ZServerSet *s, *s1; + + for (s = zi->sets; s; s = s1) + { + s1 = s->next; + rset_delete (s->rset); + xfree (s->name); + xfree (s); + } + zi->sets = NULL; +} + ZServerSetSysno *resultSetSysnoGet (ZServerInfo *zi, const char *name, int num, int *positions) {