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:
d0d4cdb
)
Fix present chunk
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 23 Apr 2012 07:26:35 +0000
(07:26 +0000)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 23 Apr 2012 07:26:35 +0000
(07:26 +0000)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
dcbfd6c
..
9e52b0a
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-762,6
+762,7
@@
void client_start_search(struct client *cl)
int present_chunk = 20; // Default chunk size
if (opt_present_chunk && strcmp(opt_present_chunk,"")) {
present_chunk = atoi(opt_present_chunk);
int present_chunk = 20; // Default chunk size
if (opt_present_chunk && strcmp(opt_present_chunk,"")) {
present_chunk = atoi(opt_present_chunk);
+ yaz_log(YLOG_DEBUG, "Present chunk set to %d", present_chunk);
}
assert(link);
}
assert(link);
@@
-803,11
+804,13
@@
void client_start_search(struct client *cl)
/* A present_chunk less than 1 will disable chunking. */
if (present_chunk > 0 && cl->maxrecs > present_chunk) {
sprintf(present_chunk_str, "%d", present_chunk);
/* A present_chunk less than 1 will disable chunking. */
if (present_chunk > 0 && cl->maxrecs > present_chunk) {
sprintf(present_chunk_str, "%d", present_chunk);
- ZOOM_connection_option_set(link, "presentChunk", opt_present_chunk);
+ ZOOM_connection_option_set(link, "presentChunk", present_chunk_str);
+ yaz_log(YLOG_DEBUG, "Present chunk set to %s", present_chunk_str);
}
}
- else
+ else {
ZOOM_connection_option_set(link, "presentChunk", maxrecs_str);
ZOOM_connection_option_set(link, "presentChunk", maxrecs_str);
-
+ yaz_log(YLOG_DEBUG, "Present chunk set to %s (maxrecs)", maxrecs_str);
+ }
sprintf(startrecs_str, "%d", cl->startrecs);
ZOOM_connection_option_set(link, "start", startrecs_str);
sprintf(startrecs_str, "%d", cl->startrecs);
ZOOM_connection_option_set(link, "start", startrecs_str);