[Checkins] SVN: relstorage/trunk/ Use the store connection rather than the load connection for OID
Shane Hathaway
shane at hathawaymix.org
Wed Sep 30 01:32:53 EDT 2009
Log message for revision 104629:
Use the store connection rather than the load connection for OID
allocation.
Changed:
U relstorage/trunk/CHANGES.txt
U relstorage/trunk/relstorage/storage.py
-=-
Modified: relstorage/trunk/CHANGES.txt
===================================================================
--- relstorage/trunk/CHANGES.txt 2009-09-30 00:30:28 UTC (rev 104628)
+++ relstorage/trunk/CHANGES.txt 2009-09-30 05:32:53 UTC (rev 104629)
@@ -31,6 +31,8 @@
- Stopped wrapping database disconnect exceptions. Now the code
catches and handles them directly.
+- Use the store connection rather than the load connection for OID
+ allocation.
1.3.0b1 (2009-09-04)
--------------------
Modified: relstorage/trunk/relstorage/storage.py
===================================================================
--- relstorage/trunk/relstorage/storage.py 2009-09-30 00:30:28 UTC (rev 104628)
+++ relstorage/trunk/relstorage/storage.py 2009-09-30 05:32:53 UTC (rev 104629)
@@ -790,10 +790,10 @@
raise POSException.ReadOnlyError()
self._lock_acquire()
try:
- cursor = self._load_cursor
+ cursor = self._store_cursor
if cursor is None:
- self._open_load_connection()
- cursor = self._load_cursor
+ self._open_store_connection()
+ cursor = self._store_cursor
oid_int = self._adapter.oidallocator.new_oid(cursor)
self._max_new_oid = max(self._max_new_oid, oid_int)
return p64(oid_int)
More information about the checkins
mailing list