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
b356e3c7
Commit
b356e3c7
authored
Aug 03, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some ols no-longer valid was causing discarded versions to be
forgotten even though they can be resurrected via undo.
parent
d120bfa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+1
-13
No files found.
src/ZODB/FileStorage.py
View file @
b356e3c7
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
# may have a back pointer to a version record or to a non-version
# may have a back pointer to a version record or to a non-version
# record.
# record.
#
#
__version__
=
'$Revision: 1.2
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
bpthread
,
string
,
base64
import
struct
,
time
,
os
,
bpthread
,
string
,
base64
from
struct
import
pack
,
unpack
from
struct
import
pack
,
unpack
...
@@ -1197,8 +1197,6 @@ def read_index(file, name, index, vindex, tindex, stop='\377'*8):
...
@@ -1197,8 +1197,6 @@ def read_index(file, name, index, vindex, tindex, stop='\377'*8):
del
tindex
[:]
del
tindex
[:]
_checkVindex
(
file
,
index
,
vindex
)
return
pos
,
maxoid
,
ltid
return
pos
,
maxoid
,
ltid
...
@@ -1230,13 +1228,3 @@ def _loadBackPOS(file, oid, back):
...
@@ -1230,13 +1228,3 @@ def _loadBackPOS(file, oid, back):
if
vlen
:
seek
(
vlen
+
16
,
1
)
if
vlen
:
seek
(
vlen
+
16
,
1
)
if
plen
!=
z64
:
return
old
if
plen
!=
z64
:
return
old
back
=
read
(
8
)
# We got a back pointer!
back
=
read
(
8
)
# We got a back pointer!
def
_checkVindex
(
file
,
index
,
vindex
):
seek
=
file
.
seek
read
=
file
.
read
get
=
index
.
get
for
version
,
pos
in
vindex
.
items
():
seek
(
pos
)
oid
=
read
(
8
)
if
get
(
oid
,
None
)
!=
pos
:
del
vindex
[
version
]
# This version is no longer active
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