X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fseshigh.c;h=586af6505b2ccf489098c245659bf99264ca4db8;hb=a00dfa73d5d3796f8048f2134fec2685b62e2658;hp=fd4b2f368f954dd8e8d4ea7c8502e467f6357205;hpb=bc33b8b53697bcc10a02f7e7456fd75b2c3473ef;p=yaz-moved-to-github.git diff --git a/server/seshigh.c b/server/seshigh.c index fd4b2f3..586af65 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: seshigh.c,v $ - * Revision 1.62 1996-07-06 19:58:35 quinn + * Revision 1.64 1997-04-30 08:52:11 quinn + * Null + * + * Revision 1.63 1996/10/11 11:57:26 quinn + * Smallish + * + * Revision 1.62 1996/07/06 19:58:35 quinn * System headerfiles gathered in yconfig * * Revision 1.61 1996/06/10 08:56:16 quinn @@ -852,7 +858,7 @@ static Z_Records *pack_records(association *a, char *setname, int start, int *num, Z_RecordComposition *comp, int *next, int *pres, oid_value format) { - int recno, total_length = 0, toget = *num; + int recno, total_length = 0, toget = *num, dumped_records = 0; static Z_Records records; static Z_NamePlusRecordList reclist; static Z_NamePlusRecord *list[MAX_RECORDS]; @@ -882,7 +888,7 @@ static Z_Records *pack_records(association *a, char *setname, int start, * allocation done by the backend - this should give us a reasonable * idea of the total size of the data so far. */ - total_length = odr_total(a->encode); + total_length = odr_total(a->encode) - dumped_records; if (reclist.num_records == MAX_RECORDS - 1) { *pres = Z_PRES_PARTIAL_2; @@ -931,6 +937,7 @@ static Z_Records *pack_records(association *a, char *setname, int start, surrogatediagrec(a->proto, fres->basename, 16, 0); reclist.num_records++; *next = fres->last_in_set ? 0 : recno + 1; + dumped_records += this_length; continue; } } @@ -941,6 +948,7 @@ static Z_Records *pack_records(association *a, char *setname, int start, surrogatediagrec(a->proto, fres->basename, 17, 0); reclist.num_records++; *next = fres->last_in_set ? 0 : recno + 1; + dumped_records += this_length; continue; } }