Work on compaction of dictionary/isamc.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Mar 1999 10:16:35 +0000 (10:16 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Mar 1999 10:16:35 +0000 (10:16 +0000)
index/Makefile.in
index/compact.c [new file with mode: 0644]

index 03efd0e..d21698d 100644 (file)
@@ -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 (file)
index 0000000..eab0edc
--- /dev/null
@@ -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 <stdio.h>
+#include <assert.h>
+#include <string.h>
+
+#include "index.h"
+#include "recindex.h"
+
+void inv_compact (BFiles bfs)
+{
+    dict_compact (bfs, FNAME_DICT, "out");
+}