Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
85f3ed4a
Commit
85f3ed4a
authored
May 06, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge rev 30262 from 3.4 branch.
`synchs` can be None -- deal with it. Reported by Gary Poster.
parent
46951531
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/transaction/_manager.py
src/transaction/_manager.py
+3
-2
No files found.
src/transaction/_manager.py
View file @
85f3ed4a
...
@@ -33,13 +33,14 @@ from transaction._transaction import Transaction
...
@@ -33,13 +33,14 @@ from transaction._transaction import Transaction
# at top level here.
# at top level here.
# Call the ISynchronizer newTransaction() method on every element of
# Call the ISynchronizer newTransaction() method on every element of
# WeakSet synchs.
# WeakSet synchs
(or skip it if synchs is None)
.
# A transaction manager needs to do this whenever begin() is called.
# A transaction manager needs to do this whenever begin() is called.
# Since it would be good if tm.get() returned the new transaction while
# Since it would be good if tm.get() returned the new transaction while
# newTransaction() is running, calling this has to be delayed until after
# newTransaction() is running, calling this has to be delayed until after
# the transaction manager has done whatever it needs to do to make its
# the transaction manager has done whatever it needs to do to make its
# get() return the new txn.
# get() return the new txn.
def
_new_transaction
(
txn
,
synchs
):
def
_new_transaction
(
txn
,
synchs
):
if
synchs
:
synchs
.
map
(
lambda
s
:
s
.
newTransaction
(
txn
))
synchs
.
map
(
lambda
s
:
s
.
newTransaction
(
txn
))
class
TransactionManager
(
object
):
class
TransactionManager
(
object
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment