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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
f0faa0da
Commit
f0faa0da
authored
Feb 25, 2006
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed unused "dirty" filename references
parent
28e4533a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/ZODB/Blobs/BlobStorage.py
src/ZODB/Blobs/BlobStorage.py
+2
-9
No files found.
src/ZODB/Blobs/BlobStorage.py
View file @
f0faa0da
...
@@ -72,11 +72,6 @@ class BlobStorage(ProxyBase):
...
@@ -72,11 +72,6 @@ class BlobStorage(ProxyBase):
self
.
_lock_release
()
self
.
_lock_release
()
return
self
.
_tid
return
self
.
_tid
def
_getDirtyFilename
(
self
,
oid
):
"""Generate an intermediate filename for two-phase commit.
"""
return
self
.
_getCleanFilename
(
oid
,
BLOB_DIRTY
)
def
_getBlobPath
(
self
,
oid
):
def
_getBlobPath
(
self
,
oid
):
return
os
.
path
.
join
(
self
.
base_directory
,
return
os
.
path
.
join
(
self
.
base_directory
,
utils
.
oid_repr
(
oid
)
utils
.
oid_repr
(
oid
)
...
@@ -104,10 +99,8 @@ class BlobStorage(ProxyBase):
...
@@ -104,10 +99,8 @@ class BlobStorage(ProxyBase):
while
self
.
dirty_oids
:
while
self
.
dirty_oids
:
oid
,
serial
=
self
.
dirty_oids
.
pop
()
oid
,
serial
=
self
.
dirty_oids
.
pop
()
clean
=
self
.
_getCleanFilename
(
oid
,
serial
)
clean
=
self
.
_getCleanFilename
(
oid
,
serial
)
dirty
=
self
.
_getDirtyFilename
(
oid
,
serial
)
if
os
.
exists
(
clean
):
for
filename
in
[
clean
,
dirty
]:
os
.
unlink
(
clean
)
if
os
.
exists
(
filename
):
os
.
unlink
(
filename
)
def
loadBlob
(
self
,
oid
,
serial
,
version
):
def
loadBlob
(
self
,
oid
,
serial
,
version
):
"""Return the filename where the blob file can be found.
"""Return the filename where the blob file can be found.
...
...
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