[ZODB-Dev] ZEO, get_transaction() & threads

Greg Ward gward@mems-exchange.org
Tue, 24 Jul 2001 22:25:39 -0400


On 24 July 2001, John E. Barham said:
> Anyway, a couple of issues:  I'm running the ZEO server and clients on
> Win2k.  If I do get_transaction().commit() from one client the other client
> doesn't see the changes to the DB unless it restarts.  What am I doing
> wrong?  Do I need to close and re-open the connection to see changes that
> other clients have made?

After process (thread?) A commits, call sync() on the Connection object
in process (thread?) B, and you'll be happy.

        Greg
-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org