Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
909ff427
Commit
909ff427
authored
Sep 24, 2005
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the proper attribute for detecting "dirty" blobs.
parent
b7c4af27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
src/ZODB/Blobs/BlobStorage.py
src/ZODB/Blobs/BlobStorage.py
+10
-9
No files found.
src/ZODB/Blobs/BlobStorage.py
View file @
909ff427
...
...
@@ -90,18 +90,19 @@ class BlobStorage(ProxyBase):
def
tpc_finish
(
self
,
*
arg
,
**
kw
):
""" We need to override the base storage's tpc_finish instead of
providing a _finish method because methods
aren't rebound to the proxy
when they're found via getattr on the unproxied object
"""
providing a _finish method because methods
found on the proxied object
aren't rebound to the proxy
"""
getProxiedObject
(
self
).
tpc_finish
(
*
arg
,
**
kw
)
self
.
dirty_
blob
s
=
[]
self
.
dirty_
oid
s
=
[]
def
tpc_abort
(
self
,
*
arg
,
**
kw
):
""" We need to override the base storage's tpc_abort instead of
providing a _abort method because methods aren't rebound to the proxy
when they're found via getattr on the unproxied object"""
getProxiedObject
(
self
).
tpc_abort
(
*
arg
,
**
kw
)
while
self
.
dirty_blobs
:
oid
,
serial
=
self
.
dirty_blobs
.
pop
()
""" We need to override the base storage's abort instead of
providing an _abort method because methods found on the proxied object
aren't rebound to the proxy """
# XXX this is never called during our tests.
getProxiedObject
(
self
).
abort
(
*
arg
,
**
kw
)
while
self
.
dirty_oids
:
oid
,
serial
=
self
.
dirty_oids
.
pop
()
clean
=
self
.
_getCleanFilename
(
oid
,
serial
)
dirty
=
self
.
_getDirtyFilename
(
oid
,
serial
)
for
filename
in
[
clean
,
dirty
]:
...
...
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