[ZODB-Dev] zeoup.py writes to Data.fs?

Chris Withers chris at simplistix.co.uk
Thu Mar 9 03:00:09 EST 2006


You live and learn, thanks Tim and Jeremy! :-)

Chris

Tim Peters wrote:
> [Chris Withers]
>> Is it just me or does zeoup.py write a transaction to the end of Data.fs
>> containing a MinPO object?
> 
> """Make sure a ZEO server is running.
> 
> usage: zeoup.py [options]
> 
> The test will connect to a ZEO server, load the root object, and attempt to
> update the zeoup counter in the root.  It will report success if it updates
> the counter or if it gets a ConflictError.  A ConflictError is considered a
> success, because the client was able to start a transaction.
> 
> Options:
> 
>     -p port -- port to connect to
> 
>     -h host -- host to connect to (default is current host)
> 
>     -S storage -- storage name (default '1')
> 
>     -U path -- Unix-domain socket to connect to
> 
>     --nowrite -- Do not update the zeoup counter.
> 
>     -1 -- Connect to a ZEO 1.0 server.
> 
> You must specify either -p and -h or -U.
> """
> 
> IOW, zeoup's _purpose_ is to try to commit a transaction.  I'm not
> sure why the --nowrite option exists -- it still tries to commit a
> transaction then, but opens the connection in read-only mode, so can't
> succeed.
> 

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the ZODB-Dev mailing list