X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=7e5f65ba3f365b2532e1f9e24cd5d8c95d0fa09c;hb=bf994e8c94edd6af6add9a94d6b14958da51a63f;hp=76755815dc5d765e0f3e90c052ffbfbf33f3e02f;hpb=d21c0a79df949a31f337094b8e169d04a939a9dc;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 7675581..7e5f65b 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.6 2003-12-21 11:33:29 adam Exp $ + * $Id: seshigh.c,v 1.8 2003-12-29 13:39:41 adam Exp $ */ /* @@ -1539,7 +1539,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.6 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.8 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -1780,13 +1780,13 @@ static Z_Records *pack_records(association *a, char *setname, int start, if (freq.len >= 0) this_length = freq.len; else - this_length = odr_total(a->encode) - total_length; - yaz_log(LOG_DEBUG, " fetched record, len=%d, total=%d", - this_length, total_length); + this_length = odr_total(a->encode) - total_length - dumped_records; + yaz_log(LOG_DEBUG, " fetched record, len=%d, total=%d dumped=%d", + this_length, total_length, dumped_records); if (this_length + total_length > a->preferredMessageSize) { /* record is small enough, really */ - if (this_length <= a->preferredMessageSize) + if (this_length <= a->preferredMessageSize && recno > start) { yaz_log(LOG_DEBUG, " Dropped last normal-sized record"); *pres = Z_PRES_PARTIAL_2;