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:
6e85147
)
Fewer messages when pz:extendfetch is not in effect
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Mar 2013 14:24:12 +0000
(15:24 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Mar 2013 14:24:12 +0000
(15:24 +0100)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
d349103
..
7b7017b
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-779,15
+779,17
@@
int client_fetch_more(struct client *cl)
int extend_recs = 0;
int number;
int extend_recs = 0;
int number;
+ str = session_setting_oneval(sdb, PZ_EXTENDRECS);
+ if (!str && !*str)
+ return 0;
+
+ extend_recs = atoi(str);
+
yaz_log(YLOG_LOG, "cl=%s show_stat_no=%d got=%d",
client_get_id(cl), cl->show_stat_no, cl->record_offset);
if (cl->show_stat_no < cl->record_offset)
return 0;
yaz_log(YLOG_LOG, "cl=%s show_stat_no=%d got=%d",
client_get_id(cl), cl->show_stat_no, cl->record_offset);
if (cl->show_stat_no < cl->record_offset)
return 0;
- yaz_log(YLOG_LOG, "cl=%s Trying to get more", client_get_id(cl));
-
- str = session_setting_oneval(sdb, PZ_EXTENDRECS);
- if (str && *str)
- extend_recs = atoi(str);
+ yaz_log(YLOG_LOG, "cl=%s Trying to fetch more", client_get_id(cl));
if (extend_recs > cl->hits)
extend_recs = cl->hits;
if (extend_recs > cl->hits)
extend_recs = cl->hits;