[Xapian-discuss] Threaded test (in C++) to reproduce our database problems

Olly Betts olly@survex.com
Thu, 17 Jun 2004 11:18:11 +0100


On Thu, Jun 17, 2004 at 12:30:50AM -0400, Eric B. Ridge wrote:
> >> Writer:  ERROR=Db block overwritten
> > 
> > But the writer thread shouldn't get this unless there's another writer.
> 
> Did you mean "writer to the same database" or "writer to ANY database"???

To the same database.

> I've hacked up the C++ thread test to do this:
> 
> - 2 Writer threads.  Each to a *different* database
> - ZERO! reader threads.
> 
> In theory, these guys should not interfere with each other, right?

Right.  But your example shows that they do somehow.  This is most odd
as there's no shared state there.  I'll dig into this.

Cheers,
    Olly