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
ce70227f
Commit
ce70227f
authored
Sep 12, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch BTree_findRangeEnd to check the next bucket on a miss on the current
bucket when doing a "low" search.
parent
cfa60a7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
src/BTrees/BTreeTemplate.c
src/BTrees/BTreeTemplate.c
+15
-4
No files found.
src/BTrees/BTreeTemplate.c
View file @
ce70227f
...
...
@@ -83,7 +83,7 @@
****************************************************************************/
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
8 2001/08/13 19:03:10 andreasjung
Exp $\n"
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
9 2001/09/12 20:47:17 matt
Exp $\n"
/*
** _BTree_get
...
...
@@ -929,9 +929,20 @@ BTree_findRangeEnd(BTree *self, PyObject *keyarg, int low,
}
else
{
i
=
0
;
/* Because we might miss on a range search where max=len */
while
(
i
==
0
)
{
*
bucket
=
BUCKET
(
self
->
data
[
min
].
value
);
if
((
i
=
Bucket_findRangeEnd
(
*
bucket
,
keyarg
,
low
,
offset
)))
i
=
Bucket_findRangeEnd
(
*
bucket
,
keyarg
,
low
,
offset
);
if
(
i
)
{
Py_INCREF
(
*
bucket
);
break
;
}
/* if we missed, on low search, go to next bucket */
else
if
(
low
&&
i
==
0
&&
min
+
1
<
self
->
len
)
min
++
;
else
break
;
}
}
return
i
;
...
...
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