[Checkins] SVN: zc.bsddbstorage/branches/dev/src/zc/bsddbstorage/__init__.py checkpoint

Jim Fulton jim at zope.com
Thu Nov 19 14:20:19 EST 2009


Log message for revision 105886:
  checkpoint
  

Changed:
  U   zc.bsddbstorage/branches/dev/src/zc/bsddbstorage/__init__.py

-=-
Modified: zc.bsddbstorage/branches/dev/src/zc/bsddbstorage/__init__.py
===================================================================
--- zc.bsddbstorage/branches/dev/src/zc/bsddbstorage/__init__.py	2009-11-19 19:15:05 UTC (rev 105885)
+++ zc.bsddbstorage/branches/dev/src/zc/bsddbstorage/__init__.py	2009-11-19 19:20:19 UTC (rev 105886)
@@ -642,10 +642,10 @@
         """
         with self._current_lock.read():
             with self.txn(db.DB_TXN_SNAPSHOT) as txn:
-                kv = self.data.get(oid, doff=0, dlen=8)
-                if not kv or len(kv[1]) == 8:
+                rec = self.data.get(oid, doff=0, dlen=9)
+                if not rec or len(rec) == 8:
                     raise ZODB.POSException.POSKeyError(oid)
-                return kv[1]
+                return n64(rec[:8])
 
 
     def tpc_transaction(self):



More information about the checkins mailing list