[ZODB-Dev] Pack problem

Alessandro Pisa alessandro.pisa at gmail.com
Mon Jun 30 16:02:01 CEST 2014


On 30 June 2014 15:42, Jim Fulton <jim at zope.com> wrote:
> On Mon, Jun 30, 2014 at 8:24 AM, Alessandro Pisa
>
> I suggest using the file-store iterator to look at the transaction
> timestamps.
>
> Something like:
>
>   from ZODB.FileStorage import FileIterator
>
>   it = FileIterator('s.fs')
>
>   last = None
>   for t in it:
>       if last is not None:
>           if t.tid <= last:
>               print 'wtf', repr(t.tid)
>           last = t.tid
>
>
> If you've said to pack to the present and you
> aren't writing to the database, then I would expect it to stop at
> the end of the file, unless you have a problem with your
> transaction ids.
>

I Think I understood your point: transactions are appended to the file.
Indeed what I am observing is compatible with a crazy clock.

I will start by checking if tids are in sequence.

Thanks for now, this gives me some clue!
-- 
http://alepisa.blogspot.com
Esalando Prassi


More information about the ZODB-Dev mailing list