projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure sorted reclists even if now show is performed
[pazpar2-moved-to-github.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
0aaec33
..
77d9ee8
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-1240,6
+1240,7
@@
struct record_cluster *show_single_start(struct session *se, const char *id,
session_enter(se, "show_single_start");
*prev_r = 0;
*next_r = 0;
session_enter(se, "show_single_start");
*prev_r = 0;
*next_r = 0;
+ reclist_limit(se->reclist, se, 1);
reclist_enter(se->reclist);
while ((r = reclist_read_record(se->reclist)))
reclist_enter(se->reclist);
while ((r = reclist_read_record(se->reclist)))
@@
-1313,7
+1314,7
@@
struct record_cluster **show_range_start(struct session *se,
*sumhits = 0;
*approx_hits = 0;
*total = 0;
*sumhits = 0;
*approx_hits = 0;
*total = 0;
- reclist_limit(se->reclist, se);
+ reclist_limit(se->reclist, se, 0);
if (se->relevance)
{
for (spp = sp; spp; spp = spp->next)
if (se->relevance)
{
for (spp = sp; spp; spp = spp->next)