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
ec6f44d2
Commit
ec6f44d2
authored
Aug 17, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a commitlog is open when the storage is closed, close it. This allows
the Windows test suite to pass.
parent
31912b3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
lib/python/BDBStorage/BDBFullStorage.py
lib/python/BDBStorage/BDBFullStorage.py
+3
-1
lib/python/BDBStorage/BDBMinimalStorage.py
lib/python/BDBStorage/BDBMinimalStorage.py
+3
-1
lib/python/BDBStorage/Full.py
lib/python/BDBStorage/Full.py
+3
-1
lib/python/BDBStorage/Minimal.py
lib/python/BDBStorage/Minimal.py
+3
-1
No files found.
lib/python/BDBStorage/BDBFullStorage.py
View file @
ec6f44d2
...
...
@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
__version__
=
'$Revision: 1.
29
$'
[
-
2
:][
0
]
__version__
=
'$Revision: 1.
30
$'
[
-
2
:][
0
]
import
sys
import
struct
...
...
@@ -165,6 +165,8 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
#self._nextserial = 0L
def
close
(
self
):
if
self
.
_commitlog
is
not
None
:
self
.
_commitlog
.
close
()
self
.
_serials
.
close
()
self
.
_pickles
.
close
()
self
.
_vids
.
close
()
...
...
lib/python/BDBStorage/BDBMinimalStorage.py
View file @
ec6f44d2
...
...
@@ -4,7 +4,7 @@ See Full.py for an implementation of Berkeley storage that does support undo
and versioning.
"""
__version__
=
'$Revision: 1.
9
$'
[
-
2
:][
0
]
__version__
=
'$Revision: 1.
10
$'
[
-
2
:][
0
]
# This uses the Dunn/Kuchling PyBSDDB v3 extension module available from
# http://pybsddb.sourceforge.net. It is compatible with release 3.0 of
...
...
@@ -122,6 +122,8 @@ class Minimal(BerkeleyBase):
# that just to reclaim the garbage?
self
.
_serials
.
close
()
self
.
_pickles
.
close
()
if
self
.
_commitlog
is
not
None
:
self
.
_commitlog
.
close
()
# Base class implements some useful close behavior
BerkeleyBase
.
close
(
self
)
...
...
lib/python/BDBStorage/Full.py
View file @
ec6f44d2
...
...
@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
__version__
=
'$Revision: 1.
29
$'
[
-
2
:][
0
]
__version__
=
'$Revision: 1.
30
$'
[
-
2
:][
0
]
import
sys
import
struct
...
...
@@ -165,6 +165,8 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
#self._nextserial = 0L
def
close
(
self
):
if
self
.
_commitlog
is
not
None
:
self
.
_commitlog
.
close
()
self
.
_serials
.
close
()
self
.
_pickles
.
close
()
self
.
_vids
.
close
()
...
...
lib/python/BDBStorage/Minimal.py
View file @
ec6f44d2
...
...
@@ -4,7 +4,7 @@ See Full.py for an implementation of Berkeley storage that does support undo
and versioning.
"""
__version__
=
'$Revision: 1.
9
$'
[
-
2
:][
0
]
__version__
=
'$Revision: 1.
10
$'
[
-
2
:][
0
]
# This uses the Dunn/Kuchling PyBSDDB v3 extension module available from
# http://pybsddb.sourceforge.net. It is compatible with release 3.0 of
...
...
@@ -122,6 +122,8 @@ class Minimal(BerkeleyBase):
# that just to reclaim the garbage?
self
.
_serials
.
close
()
self
.
_pickles
.
close
()
if
self
.
_commitlog
is
not
None
:
self
.
_commitlog
.
close
()
# Base class implements some useful close behavior
BerkeleyBase
.
close
(
self
)
...
...
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