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
a4e47054
Commit
a4e47054
authored
Apr 13, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tpc_vote(), _vote(): Removed, the BaseStorage base class implements
the infrastructure.
parent
2ff975f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
lib/python/BDBStorage/BerkeleyBase.py
lib/python/BDBStorage/BerkeleyBase.py
+2
-16
No files found.
lib/python/BDBStorage/BerkeleyBase.py
View file @
a4e47054
...
...
@@ -22,9 +22,10 @@ from bsddb3 import db
# BaseStorage provides primitives for lock acquisition and release,
# abortVersion(), commitVersion() and a host of other methods, some of which
# are overridden here, some of which are not.
from
ZODB
import
POSException
from
ZODB.BaseStorage
import
BaseStorage
# $Revision: 1.
3
$
# $Revision: 1.
4
$
__version__
=
'0.1'
...
...
@@ -147,21 +148,6 @@ class BerkeleyBase(BaseStorage):
# TBD: this is expensive to calculate and many not be necessary.
return
0
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
)
finally
:
self
.
_lock_release
()
def
_vote
(
self
,
transaction
):
pass
def
_finish
(
self
,
tid
,
user
,
desc
,
ext
):
"""Called from BaseStorage.tpc_finish(), this commits the underlying
BSDDB transaction.
...
...
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