[ZODB-Dev] My zc.zodbdgc docs (incl. approach to fixing poskey errors)

Sylvain Viollon sylvain at infrae.com
Mon Aug 1 12:26:10 EDT 2011


Op 24 jul 2011, om 16:59 heeft Hanno Schlichting het volgende geschreven:

> Hi.
> 

  Hello,

> I polished my zc.zodbdgc a bit and published them at
> http://zodb.org/documentation/articles/multi-zodb-gc.html
> 
> Those include a description on using the reference database to find
> and fix PosKeyErrors (tested by Andreas).
> 

  I had a look at it today.

  However, if I run multi-check-gc, I get a Python error:

Traceback (most recent call last):
  File "./bin/multi-zodb-gc", line 210, in <module>
    zc.zodbdgc.gc_command()
  File "/Users/sylvain/Documents/debug-eggs/zc.zodbdgc-0.6.0-py2.7.egg/zc/zodbdgc/__init__.py", line 99, in gc_command
    untransform=untransform, ptid=ptid)
  File "/Users/sylvain/Documents/debug-eggs/zc.zodbdgc-0.6.0-py2.7.egg/zc/zodbdgc/__init__.py", line 105, in gc
    return gc_(close, conf, days, ignore, conf2, fs, untransform, ptid)
  File "/Users/sylvain/Documents/debug-eggs/zc.zodbdgc-0.6.0-py2.7.egg/zc/zodbdgc/__init__.py", line 220, in gc_
    getrefs(data, name, ignore))
  File "/Users/sylvain/Documents/debug-eggs/zc.zodbdgc-0.6.0-py2.7.egg/zc/zodbdgc/__init__.py", line 398, in insert
    tid = max(tid, oldtid)
NameError: global name 'oldtid' is not defined

  Which is true, oldtid is not defined anywhere in this Python module.

  I used zc.zodbdgc 0.6 and ZODB 2.10.3 (Zope 2 2.13.8) with Python 2.7.

  (I just run the script with a database that do have POSKeyError, using only a configuration file).

  Regards,

  Sylvain,

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands





More information about the ZODB-Dev mailing list