Commit e9bed968 authored by Tim Peters's avatar Tim Peters

Note that nailing the type of oid to str may allow some

thread simplifications in Connection._invalidated handling.
Thanks to Florent Guillaume for noticing!
parent 4becdd30
......@@ -125,6 +125,9 @@ class Connection(ExportImport, object):
# will execute atomically by virtue of the GIL. But some storage
# might generate oids where hash or compare invokes Python code. In
# that case, the GIL can't save us.
# Note: since that was written, it was officially declared that the
# type of an oid is str. TODO: remove the related now-unnecessary
# critical sections (if any -- this needs careful thought).
self._inv_lock = threading.Lock()
self._invalidated = d = {}
......
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