Ticket #356: compact_nometainfo.sh

File compact_nometainfo.sh, 434 bytes (added by Pablo Hoffman, 16 years ago)

script to reproduce the problem (requires xappy)

Line 
1#!/bin/sh
2
3rm -rf /tmp/emptyindex
4
5python <<!
6import xappy
7conn = xappy.IndexerConnection('/tmp/emptyindex')
8
9# if the next is commented out, xapian-compact doesn't fail
10conn.add_field_action('name', xappy.FieldActions.INDEX_FREETEXT)
11
12conn.close()
13!
14
15# xapian-compact fails with the error:
16# postlist ...xapian-compact: DatabaseCorruptError: No METAINFO item in postlist table.
17xapian-compact /tmp/emptyindex /tmp/emptyindex-compact