[ZODB-Dev] minimizing the need for database packing

Dieter Maurer dieter at handshake.de
Wed Jan 2 13:30:20 EST 2008


Jim Fulton wrote at 2007-12-29 16:06 -0500:
> ...
>> If you are at it: I think the lock which protects the "finish" test
>> is hold too long. Currently, it is just release for a very short time
>> and then immeadiately reacquired. It should be safe to release it
>> immediately after the "finish" test has failed.
>
>
>I don't know what you are referring to. Could you be more specific?

The old "pack" code acquires the "commit" lock at the start
of the "copyRest" (copy transactions after pack time) phase
and releases it only every 20 "copyOne" calls for the duration
of one "copyOne".



-- 
Dieter


More information about the ZODB-Dev mailing list