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
ad54eedd
Commit
ad54eedd
authored
Oct 05, 2005
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified deprecation warning about txn.commit(1): the proper equivalent
now is txn.savepoint(optimistic=True).
parent
f2a9597d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transaction/_transaction.py
src/transaction/_transaction.py
+2
-2
No files found.
src/transaction/_transaction.py
View file @
ad54eedd
...
@@ -362,7 +362,7 @@ class Transaction(object):
...
@@ -362,7 +362,7 @@ class Transaction(object):
elif
deprecation_wng
:
elif
deprecation_wng
:
from
ZODB.utils
import
deprecated37
from
ZODB.utils
import
deprecated37
deprecated37
(
"subtransactions are deprecated; use "
deprecated37
(
"subtransactions are deprecated; use "
"transaction.savepoint() instead of "
"transaction.savepoint(
optimistic=True
) instead of "
"transaction.commit(1)"
)
"transaction.commit(1)"
)
if
self
.
_savepoint2index
:
if
self
.
_savepoint2index
:
...
@@ -370,7 +370,7 @@ class Transaction(object):
...
@@ -370,7 +370,7 @@ class Transaction(object):
if
subtransaction
:
if
subtransaction
:
# TODO deprecate subtransactions
# TODO deprecate subtransactions
self
.
_subtransaction_savepoint
=
self
.
savepoint
(
1
)
self
.
_subtransaction_savepoint
=
self
.
savepoint
(
optimistic
=
True
)
return
return
if
self
.
status
is
Status
.
COMMITFAILED
:
if
self
.
status
is
Status
.
COMMITFAILED
:
...
...
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