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
aeaee348
Commit
aeaee348
authored
Mar 30, 2001
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_finish(): next_object() => next()
_closelog(): Moved to BerkeleyBase base class.
parent
194369e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
lib/python/BDBStorage/BDBMinimalStorage.py
lib/python/BDBStorage/BDBMinimalStorage.py
+2
-10
lib/python/BDBStorage/Minimal.py
lib/python/BDBStorage/Minimal.py
+2
-10
No files found.
lib/python/BDBStorage/BDBMinimalStorage.py
View file @
aeaee348
...
...
@@ -4,7 +4,7 @@ See Full.py for an implementation of Berkeley storage that does support undo
and versioning.
"""
# $Revision: 1.
5
$
# $Revision: 1.
6
$
__version__
=
'0.1'
# This uses the Dunn/Kuchling PyBSDDB v3 extension module available from
...
...
@@ -97,7 +97,7 @@ class Minimal(BerkeleyBase):
# tpc_begin().
serial
=
self
.
_serial
while
1
:
rec
=
self
.
_commitlog
.
next
_object
()
rec
=
self
.
_commitlog
.
next
()
if
rec
is
None
:
break
oid
,
pickle
=
rec
...
...
@@ -123,14 +123,6 @@ class Minimal(BerkeleyBase):
# done with our commit log, so we should reset it.
self
.
_closelog
()
def
_closelog
(
self
):
self
.
_commitlog
.
finish
()
# JF: unlinking might be too inefficient. JH: might use mmap files.
# BAW: maybe just truncate the file, or write a length into the
# headers and just zero out the length.
self
.
_commitlog
.
close
(
unlink
=
1
)
self
.
_commitlog
=
None
def
close
(
self
):
# BAW: the original implementation also deleted these attributes. Was
# that just to reclaim the garbage?
...
...
lib/python/BDBStorage/Minimal.py
View file @
aeaee348
...
...
@@ -4,7 +4,7 @@ See Full.py for an implementation of Berkeley storage that does support undo
and versioning.
"""
# $Revision: 1.
5
$
# $Revision: 1.
6
$
__version__
=
'0.1'
# This uses the Dunn/Kuchling PyBSDDB v3 extension module available from
...
...
@@ -97,7 +97,7 @@ class Minimal(BerkeleyBase):
# tpc_begin().
serial
=
self
.
_serial
while
1
:
rec
=
self
.
_commitlog
.
next
_object
()
rec
=
self
.
_commitlog
.
next
()
if
rec
is
None
:
break
oid
,
pickle
=
rec
...
...
@@ -123,14 +123,6 @@ class Minimal(BerkeleyBase):
# done with our commit log, so we should reset it.
self
.
_closelog
()
def
_closelog
(
self
):
self
.
_commitlog
.
finish
()
# JF: unlinking might be too inefficient. JH: might use mmap files.
# BAW: maybe just truncate the file, or write a length into the
# headers and just zero out the length.
self
.
_commitlog
.
close
(
unlink
=
1
)
self
.
_commitlog
=
None
def
close
(
self
):
# BAW: the original implementation also deleted these attributes. Was
# that just to reclaim the garbage?
...
...
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