Commit 3ad00339 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c42f0040
...@@ -122,20 +122,17 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]: ...@@ -122,20 +122,17 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
return super(_ZBigFile, zf).fileh_open(mmap_overlay) return super(_ZBigFile, zf).fileh_open(mmap_overlay)
# pywconnOf establishes and returns (py) wcfs.Conn associated with zconn. # pywconnOf establishes and returns (py) wcfs.Conn associated with zconn.
# #
# returned wcfs.Conn will be maintained to keep in sync with zconn, and will be # returned wcfs.Conn will be maintained to keep in sync with zconn, and will be
# closed when zconn is destroyed. # closed when zconn is destroyed.
# #
# It is invalid to make simultaneous calls to pywconnOf with the same zconn. # It is invalid to make multiple simultaneous calls to pywconnOf with the same zconn.
# (in ZODB/py objects for zconn must be used from under 1 thread only). # (in ZODB/py objects for zconn must be used from under 1 thread only).
cdef wcfs.PyConn pywconnOf(zconn): cdef wcfs.PyConn pywconnOf(zconn):
assert isinstance(zconn, ZConnection) assert isinstance(zconn, ZConnection)
assert zconn.opened assert zconn.opened
# XXX locking
wconn = getattr(zconn, '_wcfs_wconn', None) wconn = getattr(zconn, '_wcfs_wconn', None)
if wconn is not None: if wconn is not None:
return wconn return wconn
......
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