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
7b76e467
Commit
7b76e467
authored
Aug 02, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem with incomplete plan surfaced by the CMF tests
parent
065e091c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
src/Products/ZCatalog/Catalog.py
src/Products/ZCatalog/Catalog.py
+6
-0
src/Products/ZCatalog/plan.py
src/Products/ZCatalog/plan.py
+4
-0
No files found.
src/Products/ZCatalog/Catalog.py
View file @
7b76e467
...
@@ -514,7 +514,13 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
...
@@ -514,7 +514,13 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if
not
plan
:
if
not
plan
:
plan
=
self
.
_sorted_search_indexes
(
query
)
plan
=
self
.
_sorted_search_indexes
(
query
)
indexes
=
self
.
indexes
.
keys
()
for
i
in
plan
:
for
i
in
plan
:
if
i
not
in
indexes
:
# We can have bogus keys or the plan can contain index names
# that have been removed in the meantime
continue
index
=
self
.
getIndex
(
i
)
index
=
self
.
getIndex
(
i
)
_apply_index
=
getattr
(
index
,
"_apply_index"
,
None
)
_apply_index
=
getattr
(
index
,
"_apply_index"
,
None
)
if
_apply_index
is
None
:
if
_apply_index
is
None
:
...
...
src/Products/ZCatalog/plan.py
View file @
7b76e467
...
@@ -287,6 +287,10 @@ class CatalogPlan(object):
...
@@ -287,6 +287,10 @@ class CatalogPlan(object):
def
stop
(
self
):
def
stop
(
self
):
self
.
end_time
=
time
.
time
()
self
.
end_time
=
time
.
time
()
self
.
duration
=
self
.
end_time
-
self
.
start_time
self
.
duration
=
self
.
end_time
-
self
.
start_time
# Make absolutely sure we never omit query keys from the plan
for
key
in
self
.
query
.
keys
():
if
key
not
in
self
.
benchmark
.
keys
():
self
.
benchmark
[
key
]
=
Benchmark
(
0
,
0
,
0
,
False
)
PriorityMap
.
set_entry
(
self
.
cid
,
self
.
key
,
self
.
benchmark
)
PriorityMap
.
set_entry
(
self
.
cid
,
self
.
key
,
self
.
benchmark
)
self
.
log
()
self
.
log
()
...
...
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