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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
d2874d73
Commit
d2874d73
authored
Dec 30, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make trace=False the default.
Remove some unnecessary pack() calls.
parent
4c4acfd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZEO/cache.py
src/ZEO/cache.py
+3
-3
No files found.
src/ZEO/cache.py
View file @
d2874d73
...
...
@@ -72,7 +72,7 @@ class ClientCache:
# @param path path of persistent snapshot of cache state
# @param size maximum size of object data, in bytes
def
__init__
(
self
,
path
=
None
,
size
=
None
,
trace
=
Tru
e
):
def
__init__
(
self
,
path
=
None
,
size
=
None
,
trace
=
Fals
e
):
self
.
path
=
path
self
.
size
=
size
self
.
log
=
logging
.
getLogger
(
"zeo.cache"
)
...
...
@@ -460,7 +460,7 @@ class Object(object):
# Write standard form of Object to file, f.
self
.
serialize_header
(
f
)
f
.
write
(
self
.
data
)
f
.
write
(
s
truct
.
pack
(
">8s"
,
self
.
key
[
0
])
)
f
.
write
(
s
elf
.
key
[
0
]
)
def
serialize_header
(
self
,
f
):
s
=
struct
.
pack
(
self
.
fmt
,
self
.
end_tid
or
"
\
0
"
*
8
,
...
...
@@ -486,7 +486,7 @@ class Object(object):
if
dlen
!=
len
(
data
):
raise
ValueError
(
"corrupted record, data"
)
s
=
f
.
read
(
8
)
if
s
truct
.
pack
(
">8s"
,
s
)
!=
oid
:
if
s
!=
oid
:
raise
ValueError
(
"corrupted record, oid"
)
return
cls
((
oid
,
start_tid
),
version
,
data
,
start_tid
,
end_tid
)
...
...
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