Commit d64f1550 authored by Kevin Deldycke's avatar Kevin Deldycke

Add a hack to help track suspicious UID (commented by default)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5816 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e8010c9
......@@ -828,6 +828,12 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
self.produceUid()
if len(self._v_uid_buffer) > 0:
uid = self._v_uid_buffer.pop()
# Vincent added this 2006/01/25
#if uid > 4294967296: # 2**32
#if uid > 10000000: # arbitrary level : below it's normal, above it's suspicious
# LOG('SQLCatalog', WARNING, 'Newly generated UID (%s) seems too big ! - vincent' % (uid,))
# raise RuntimeError, 'Newly generated UID (%s) seems too big ! - vincent' % (uid,)
# end
if self._max_uid is None:
self._max_uid = Length()
if uid > self._max_uid():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment