projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
735585c
)
Do not reingest/search if no client requires research
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 10 Oct 2012 10:17:25 +0000
(12:17 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 10 Oct 2012 10:17:25 +0000
(12:17 +0200)
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index
62f47eb
..
9469fd2
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-694,8
+694,10
@@
static void session_sort_unlocked(struct session *se, struct reclist_sortparms *
sr->type = type;
sr->next = se->sorted_results;
se->sorted_results = sr;
sr->type = type;
sr->next = se->sorted_results;
se->sorted_results = sr;
+ session_log(se, YLOG_DEBUG, "No research/ingesting done");
+ return ;
}
}
- // yaz_log(YLOG_DEBUG, "Restarting search or re-ingesting for clients due to change in sort order");
+ session_log(se, YLOG_DEBUG, "Re- search/ingesting for clients due to change in sort order");
for (l = se->clients_active; l; l = l->next)
{
for (l = se->clients_active; l; l = l->next)
{
@@
-706,7
+708,7
@@
static void session_sort_unlocked(struct session *se, struct reclist_sortparms *
client_start_search(cl);
}
else {
client_start_search(cl);
}
else {
- yaz_log(YLOG_DEBUG, "Client %s: Not re-start/ingest in show. Wrong client state: %d",
+ yaz_log(YLOG_DEBUG, "Client %s: No re-start/ingest in show. Wrong client state: %d",
client_get_id(cl), client_get_state(cl));
}
client_get_id(cl), client_get_state(cl));
}