X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fclient.c;h=9e52b0a9cb637f964eed6de3c9476b08fcf82a4a;hb=a308a61764c5a8da2d386827d8574c45618d63de;hp=dcbfd6ce00fe5d06f6b028b1b0ffa43d13df920b;hpb=2f8b2679c4e4d7f482d726ebfee201035d6e3192;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index dcbfd6c..9e52b0a 100644 --- 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); + yaz_log(YLOG_DEBUG, "Present chunk set to %d", present_chunk); } 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); - 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); - + 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);