[Checkins] SVN: zc.demostorage2/trunk/src/zc/demostorage2/ Make the OIDs generated by demostorage slightly smaller so as to be

Benji York benji at zope.com
Thu May 22 11:10:50 EDT 2008


Log message for revision 86906:
  Make the OIDs generated by demostorage slightly smaller so as to be
  compatible with new ZEO cache code in ZODB 3.8.1b2.  This is
  essentially a work-around, more work is forthcoming to resolve
  properly.
  

Changed:
  U   zc.demostorage2/trunk/src/zc/demostorage2/README.txt
  U   zc.demostorage2/trunk/src/zc/demostorage2/__init__.py

-=-
Modified: zc.demostorage2/trunk/src/zc/demostorage2/README.txt
===================================================================
--- zc.demostorage2/trunk/src/zc/demostorage2/README.txt	2008-05-22 10:32:39 UTC (rev 86905)
+++ zc.demostorage2/trunk/src/zc/demostorage2/README.txt	2008-05-22 15:10:47 UTC (rev 86906)
@@ -168,7 +168,7 @@
 The object id of the new object is quite large:
 
     >>> u64(conn.root()['2']._p_oid)
-    9223372036854775809L
+    4611686018427387905L
 
 Let's look at some other methods:
 

Modified: zc.demostorage2/trunk/src/zc/demostorage2/__init__.py
===================================================================
--- zc.demostorage2/trunk/src/zc/demostorage2/__init__.py	2008-05-22 10:32:39 UTC (rev 86905)
+++ zc.demostorage2/trunk/src/zc/demostorage2/__init__.py	2008-05-22 15:10:47 UTC (rev 86906)
@@ -40,7 +40,7 @@
         if lastInvalidations is not None:
             self.lastInvalidations = lastInvalidations
     
-        self._oid = max(u64(changes.new_oid()), 1l << 63)
+        self._oid = max(u64(changes.new_oid()), 1l << 62)
         self._lock = threading.RLock()
         self._commit_lock = threading.Lock()
 



More information about the Checkins mailing list