[Xapian-devel] multiple writers and remotetcp backends
Mark Hammond
mhammond at skippinet.com.au
Tue May 1 10:29:27 BST 2007
> One thing which both of these will probably need is a change to the
> remote protocol to allow a connection to specify whether it
> is writable
> or readonly at the time the connection is opened. This would
> allow the
> lock on the database to be checked and obtained at this point for
> writable database, rather than waiting for the connection to
> attempt a
> write operation.
Actually, there is yet another shortcut we can probably take: run 2 servers,
with one being writable. The writable server can then enforce a simple "one
connection only" instead of "one writable connection". Is there any reason
that will not work?
> I'm not sure what happens for the windows variant of the
> server (which
> is a threaded implementation), but I imagine that there the same
> instance of the database is accessed by each connection: if this is
> correct, there are likely to be other problems since the
> database is not safe for concurrent access. A threaded implementation
needs
> to create a new instance of the database for each thread.
Yes, that is likely a problem - I'll open a bug on that too.
> Opening a bug sooner than later would probably be advisable,
> so that the
> history of this discussion is easy to find in future.
>
> In particular, discussion of this bug may make it clear whether it
> should block the 1.0.0 release, and if so we
I assume we lost something at the end there - but yet, I'll open the bugs in
the next hour or so
Thanks,
Mark
More information about the Xapian-devel
mailing list