Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
ZEO
Commits
000588b8
Commit
000588b8
authored
May 13, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ick, Unix file-locking and threads don't seem to mix well.
Waaa. I'll probably need to add a separate lock file.
parent
724c428b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+2
-2
No files found.
src/ZODB/FileStorage.py
View file @
000588b8
...
...
@@ -151,7 +151,7 @@ Also, the object ids time stamps are big-endian, so comparisons
are meaningful.
"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
bpthread
now
=
time
.
time
...
...
@@ -270,7 +270,7 @@ class FileStorage:
if
os
.
path
.
exists
(
file_name
):
file
=
open
(
file_name
,
read_only
and
'rb'
or
'r+b'
)
if
not
read_only
:
lock_file
(
file
)
#
if not read_only: lock_file(file)
else
:
if
read_only
:
raise
ValueError
,
"can
\
'
t create a read-only file"
...
...
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