Le mardi 27 septembre 2011 12:47:42, Jim Fulton a écrit :
> Generally speaking, clases and methods are not stored in the database,
> only class names.
(This mail is out of topic... Probably only interesting to ZODB gurus.)
This reminds me of something suspicious in ZODB code.
I think there is a bug when creating ghosts (when loading class name).
When loading object *state*, the following dance happens
- if oid is in "pending invalidation" queue, loadBefore and return
- if oid is in "pending invalidation" queue, loadBefore
(in case some invalidation was not received, and this works because/as long
as loads and invalidations occur on an ordered link, such as a single TCP
But, when reading object's class when generating a ghost (Connection.get),
there is a single "load", so if object class changed, the ghost will be of the
I think this bug was originally noticed by Julien (so CC'ed).
ERP5 - open source ERP/CRM for flexible enterprises
For more information about ZODB, see http://zodb.org/
ZODB-Dev mailing list - ZODB-Dev@zope.org