Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c702bc72
Commit
c702bc72
authored
Apr 03, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tpc_vote(): Transaction passed in must be the same object as the one
given by tpc_begin(). _finish(), _abort(): Fix typos.
parent
c2679b7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/BDBStorage/BerkeleyBase.py
lib/python/BDBStorage/BerkeleyBase.py
+7
-4
No files found.
lib/python/BDBStorage/BerkeleyBase.py
View file @
c702bc72
...
...
@@ -24,7 +24,7 @@ from bsddb3 import db
# are overridden here, some of which are not.
from
ZODB.BaseStorage
import
BaseStorage
# $Revision: 1.
2
$
# $Revision: 1.
3
$
__version__
=
'0.1'
...
...
@@ -150,6 +150,9 @@ class BerkeleyBase(BaseStorage):
def
tpc_vote
(
self
,
transaction
):
# BAW: This wrapper framework should probably be in BaseStorage's
# tpc_vote()
if
transaction
is
not
self
.
_transaction
:
raise
POSException
.
StorageTransactionError
(
self
,
transaction
)
self
.
_lock_acquire
()
try
:
self
.
_vote
(
transaction
)
...
...
@@ -170,9 +173,9 @@ class BerkeleyBase(BaseStorage):
These are all ignored.
"""
self
.
_t
x
n
.
commit
()
self
.
_t
ransactio
n
.
commit
()
def
_abort
(
self
,
tid
,
user
,
desc
,
ext
):
def
_abort
(
self
):
"""Called from BaseStorage.tpc_abort(), this aborts the underlying
BSDDB transaction.
...
...
@@ -185,7 +188,7 @@ class BerkeleyBase(BaseStorage):
"""
# BAW: this appears to be broken. Look in BaseStorage.tpc_abort();
# _abort() is never called with any arguments. :/
self
.
_t
x
n
.
abort
()
self
.
_t
ransactio
n
.
abort
()
def
_clear_temp
(
self
):
"""Called from BaseStorage.tpc_abort(), BaseStorage.tpc_begin(),
...
...
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