From 254c4ba29c56564d33fae651343e83fb5c35a36f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 9 Mar 1999 10:16:35 +0000 Subject: [PATCH] Work on compaction of dictionary/isamc. --- index/Makefile.in | 4 ++-- index/compact.c | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 index/compact.c diff --git a/index/Makefile.in b/index/Makefile.in index 03efd0e..d21698d 100644 --- a/index/Makefile.in +++ b/index/Makefile.in @@ -1,7 +1,7 @@ # Copyright (C) 1995-1998, Index Data # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile.in,v 1.4 1999-02-15 08:52:37 adam Exp $ +# $Id: Makefile.in,v 1.5 1999-03-09 10:16:35 adam Exp $ SHELL=/bin/sh @@ -25,7 +25,7 @@ TPROG5=apitest DEFS=$(CDEFS) $(INCLUDE) O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \ symtab.o recindex.o recstat.o lockutil.o lockidx.o \ - zinfo.o invstat.o sortidx.o + zinfo.o invstat.o sortidx.o compact.o O2 = kdump.o O3 = zserver.o kcompare.o zrpn.o zsets.o attribute.o recindex.o \ lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o zebraapi.o \ diff --git a/index/compact.c b/index/compact.c new file mode 100644 index 0000000..eab0edc --- /dev/null +++ b/index/compact.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 1994-1999, Index Data + * All rights reserved. + * Sebastian Hammer, Adam Dickmeiss + * + * $Log: compact.c,v $ + * Revision 1.1 1999-03-09 10:16:35 adam + * Work on compaction of dictionary/isamc. + * + */ +#include +#include +#include + +#include "index.h" +#include "recindex.h" + +void inv_compact (BFiles bfs) +{ + dict_compact (bfs, FNAME_DICT, "out"); +} -- 1.7.10.4