[Xapian-discuss] database error
olly at survex.com
Wed Feb 18 00:21:40 GMT 2009
Please don't top-post.
On Wed, Feb 18, 2009 at 10:46:53AM +1030, Frank J Bruzzaniti wrote:
> I noticed that the default database is only unavailable during a merge.
> E.g. If I do xapian-merge db1 db2 default
> Is this normal? How should I index/merge my collections without the
> database being unavailable.
Yes, that's normal.
If you want to always have a database available, make default a "stub
database", create the new one under a new name, create a new stub
database file under a new name (e.g. "default.tmp") and renamed that
over the top of "default" for an atomic switchover (or despair at the
lack of POSIX semantics if using Microsoft Windows).
More information about the Xapian-discuss