GFS: Fix nextResultSetPosition for dropped record
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 21 Apr 2010 11:53:51 +0000 (13:53 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 21 Apr 2010 11:53:51 +0000 (13:53 +0200)
src/seshigh.c

index bd1ec84..b9801ff 100644 (file)
@@ -2518,6 +2518,8 @@ static Z_Records *pack_records(association *a, char *setname, Odr_int start,
             {
                 yaz_log(log_requestdetail, "  Dropped last normal-sized record");
                 *pres = Z_PresentStatus_partial_2;
+                if (*next > 0)
+                    (*next)--;
                 break;
             }
             /* record can only be fetched by itself */