Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
ed534cf2
Commit
ed534cf2
authored
Dec 29, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_search_before(): My brain told me to fix the calculation of the start_tid for
when we're looking at version data.
parent
dc066075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
lib/python/BDBStorage/BDBFullStorage.py
lib/python/BDBStorage/BDBFullStorage.py
+12
-3
No files found.
lib/python/BDBStorage/BDBFullStorage.py
View file @
ed534cf2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"""Berkeley storage with full undo and versioning support.
"""Berkeley storage with full undo and versioning support.
$Revision: 1.7
8
$
$Revision: 1.7
9
$
"""
"""
import
time
import
time
...
@@ -972,10 +972,19 @@ class BDBFullStorage(BerkeleyBase, ConflictResolvingStorage):
...
@@ -972,10 +972,19 @@ class BDBFullStorage(BerkeleyBase, ConflictResolvingStorage):
vid
,
nvrevid
,
lrevid
=
unpack
(
">8s8s8s"
,
rec
[:
24
])
vid
,
nvrevid
,
lrevid
=
unpack
(
">8s8s8s"
,
rec
[:
24
])
if
vid
==
ZERO
:
if
vid
==
ZERO
:
revid
=
lrevid
revid
=
lrevid
start_tid
=
key
[
8
:]
else
:
else
:
revid
=
nvrevid
revid
=
start_tid
=
nvrevid
while
True
:
rec
=
c
.
next
()
if
rec
is
None
or
rec
[
0
][:
8
]
<>
oid
:
end_tid
=
None
break
vid
=
rec
[
1
][:
8
]
if
vid
==
ZERO
:
end_tid
=
rec
[
0
][
8
:]
break
data
=
self
.
_pickles
[
oid
+
revid
]
data
=
self
.
_pickles
[
oid
+
revid
]
start_tid
=
key
[
8
:]
return
data
,
start_tid
,
end_tid
return
data
,
start_tid
,
end_tid
def
_getTidMissingOk
(
self
,
oid
):
def
_getTidMissingOk
(
self
,
oid
):
...
...
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