]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
update offset if we seek!!
authorwessels <>
Fri, 31 Oct 1997 01:42:55 +0000 (01:42 +0000)
committerwessels <>
Fri, 31 Oct 1997 01:42:55 +0000 (01:42 +0000)
src/disk.cc

index 4662339d0ace467ede048a8f7e524996e0a112a4..575aaed268564d027b73d47e790b0e7dc621db69 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: disk.cc,v 1.89 1997/10/28 21:59:03 wessels Exp $
+ * $Id: disk.cc,v 1.90 1997/10/30 18:42:55 wessels Exp $
  *
  * DEBUG: section 6     Disk I/O Routines
  * AUTHOR: Harvest Derived
@@ -398,6 +398,7 @@ diskHandleRead(int fd, void *data)
        debug(6, 1) ("diskHandleRead: FD %d seeking to offset %d\n",
            fd, (int) ctrl_dat->offset);
        lseek(fd, ctrl_dat->offset, SEEK_SET);  /* XXX ignore return? */
+       F->disk.offset = ctrl_dat->offset;
     }
     len = read(fd, ctrl_dat->buf, ctrl_dat->req_len);
     F->disk.offset += len;