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
42a0e06b
Commit
42a0e06b
authored
Oct 08, 2004
by
Dmitry Vasiliev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duplicate import removed
parent
d1355715
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/ZODB/FileStorage/FileStorage.py
src/ZODB/FileStorage/FileStorage.py
+3
-4
No files found.
src/ZODB/FileStorage/FileStorage.py
View file @
42a0e06b
...
@@ -20,7 +20,6 @@ import base64
...
@@ -20,7 +20,6 @@ import base64
from
cPickle
import
Pickler
,
Unpickler
,
loads
from
cPickle
import
Pickler
,
Unpickler
,
loads
import
errno
import
errno
import
os
import
os
import
struct
import
sys
import
sys
import
time
import
time
import
logging
import
logging
...
@@ -454,7 +453,7 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -454,7 +453,7 @@ class FileStorage(BaseStorage.BaseStorage,
# middle holds bytes 16:34 of a data record:
# middle holds bytes 16:34 of a data record:
# pos of transaction, len of version name, data length
# pos of transaction, len of version name, data length
# commit version never writes data, so data length is always 0
# commit version never writes data, so data length is always 0
middle
=
struct
.
pack
(
">8sH8s"
,
p64
(
self
.
_pos
),
len
(
dest
),
z64
)
middle
=
pack
(
">8sH8s"
,
p64
(
self
.
_pos
),
len
(
dest
),
z64
)
if
dest
:
if
dest
:
sd
=
p64
(
self
.
_vindex_get
(
dest
,
0
))
sd
=
p64
(
self
.
_vindex_get
(
dest
,
0
))
...
@@ -697,7 +696,7 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -697,7 +696,7 @@ class FileStorage(BaseStorage.BaseStorage,
# XXX isn't the same, 0 is returned. Why the discrepancy?
# XXX isn't the same, 0 is returned. Why the discrepancy?
self
.
_file
.
seek
(
tpos
)
self
.
_file
.
seek
(
tpos
)
h
=
self
.
_file
.
read
(
TRANS_HDR_LEN
)
h
=
self
.
_file
.
read
(
TRANS_HDR_LEN
)
tid
,
tl
,
status
,
ul
,
dl
,
el
=
struct
.
unpack
(
TRANS_HDR
,
h
)
tid
,
tl
,
status
,
ul
,
dl
,
el
=
unpack
(
TRANS_HDR
,
h
)
self
.
_file
.
read
(
ul
+
dl
+
el
)
self
.
_file
.
read
(
ul
+
dl
+
el
)
tend
=
tpos
+
tl
+
8
tend
=
tpos
+
tl
+
8
pos
=
self
.
_file
.
tell
()
pos
=
self
.
_file
.
tell
()
...
@@ -2008,7 +2007,7 @@ class UndoSearch:
...
@@ -2008,7 +2007,7 @@ class UndoSearch:
self
.
pos
-=
u64
(
self
.
file
.
read
(
8
))
+
8
self
.
pos
-=
u64
(
self
.
file
.
read
(
8
))
+
8
self
.
file
.
seek
(
self
.
pos
)
self
.
file
.
seek
(
self
.
pos
)
h
=
self
.
file
.
read
(
TRANS_HDR_LEN
)
h
=
self
.
file
.
read
(
TRANS_HDR_LEN
)
tid
,
tl
,
status
,
ul
,
dl
,
el
=
struct
.
unpack
(
TRANS_HDR
,
h
)
tid
,
tl
,
status
,
ul
,
dl
,
el
=
unpack
(
TRANS_HDR
,
h
)
if
status
==
'p'
:
if
status
==
'p'
:
self
.
stop
=
1
self
.
stop
=
1
return
None
return
None
...
...
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