Commit fc509e63 authored by Kirill Smelkov's avatar Kirill Smelkov

Merge branch 'master' into t

* master:
  lib/zodb: Fix typos
  lib/zodb: Try to clarify zconn_at intent
  bigfile/bench_1filezodb: Fix thinko when importing pygolang
parents 0098373a b195812c
...@@ -140,6 +140,9 @@ def _deactivate_bucket(bucket): ...@@ -140,6 +140,9 @@ def _deactivate_bucket(bucket):
# zconn_at returns tid as of which ZODB connection is viewing the database. # zconn_at returns tid as of which ZODB connection is viewing the database.
#
# In other words zconn_at returns database state corresponding to database view
# of the connection.
def zconn_at(zconn): # -> tid def zconn_at(zconn): # -> tid
assert isinstance(zconn, ZODB.Connection.Connection) assert isinstance(zconn, ZODB.Connection.Connection)
if zconn.opened is None: # zconn must be in "opened" state if zconn.opened is None: # zconn must be in "opened" state
...@@ -151,7 +154,7 @@ def zconn_at(zconn): # -> tid ...@@ -151,7 +154,7 @@ def zconn_at(zconn): # -> tid
# or DB wraps raw storage with MVCCAdapter. # or DB wraps raw storage with MVCCAdapter.
# #
# MVCCAdapter in turn uses either MVCCAdapterInstance (current) or # MVCCAdapter in turn uses either MVCCAdapterInstance (current) or
# HistoricalStorageAdapter, or UndoAdapterInstance. Retriving zconn.at from those: # HistoricalStorageAdapter, or UndoAdapterInstance. Retrieving zconn.at from those:
# #
# MVCCAdapterInstance # MVCCAdapterInstance
# ._start # ._start
...@@ -161,7 +164,7 @@ def zconn_at(zconn): # -> tid ...@@ -161,7 +164,7 @@ def zconn_at(zconn): # -> tid
# #
# UndoAdapterInstance # UndoAdapterInstance
# # no way to retrieve `at`, but .undo_instance() through which # # no way to retrieve `at`, but .undo_instance() through which
# # UndoAdapterInstance is returnerd, is not used anywhere. # # UndoAdapterInstance is returned, is not used anywhere.
# #
# For the reference: FileStorage, ZEO and NEO do not provide IMVCCStorage, thus # For the reference: FileStorage, ZEO and NEO do not provide IMVCCStorage, thus
# for them we can rely on MVCCAdapterInstance. # for them we can rely on MVCCAdapterInstance.
......
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