Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
d6937996
Commit
d6937996
authored
Jun 17, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BTree_maxminKey(): I was too aggressive in pruning persistence hair.
parent
49592586
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/BTrees/BTreeTemplate.c
src/BTrees/BTreeTemplate.c
+5
-2
No files found.
src/BTrees/BTreeTemplate.c
View file @
d6937996
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
****************************************************************************/
****************************************************************************/
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.6
0 2002/06/17 23:39:56
tim_one Exp $\n"
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.6
1 2002/06/17 23:55:48
tim_one Exp $\n"
/*
/*
** _BTree_get
** _BTree_get
...
@@ -1070,7 +1070,7 @@ Done:
...
@@ -1070,7 +1070,7 @@ Done:
static
PyObject
*
static
PyObject
*
BTree_maxminKey
(
BTree
*
self
,
PyObject
*
args
,
int
min
)
BTree_maxminKey
(
BTree
*
self
,
PyObject
*
args
,
int
min
)
{
{
PyObject
*
key
=
0
;
PyObject
*
key
=
0
;
Bucket
*
bucket
=
NULL
;
Bucket
*
bucket
=
NULL
;
int
offset
,
rc
;
int
offset
,
rc
;
...
@@ -1100,6 +1100,9 @@ BTree_maxminKey(BTree *self, PyObject *args, int min)
...
@@ -1100,6 +1100,9 @@ BTree_maxminKey(BTree *self, PyObject *args, int min)
else
if
(
min
)
else
if
(
min
)
{
{
bucket
=
self
->
firstbucket
;
bucket
=
self
->
firstbucket
;
PER_ALLOW_DEACTIVATION
(
self
);
PER_ACCESSED
(
self
);
PER_USE_OR_RETURN
(
bucket
,
NULL
);
Py_INCREF
(
bucket
);
Py_INCREF
(
bucket
);
offset
=
0
;
offset
=
0
;
}
}
...
...
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