X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fzsets.c;h=0c71974ed2b7384137afa9e1d23dcc5b80c0922b;hp=9cb1ca6b4f189474825be240d346212f9497774b;hb=75a4bfb9aee40405a751320769d74fd890f2c0b4;hpb=2d223d4bb4e25e45905009f71e21624604388cb3 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) {