]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Backport a fix for the diskd assertion inProgressIOs == 0.
authorrobertc <>
Sat, 23 Aug 2003 18:33:04 +0000 (18:33 +0000)
committerrobertc <>
Sat, 23 Aug 2003 18:33:04 +0000 (18:33 +0000)
Keywords:

Backport a fix for the diskd assertion inProgressIOs == 0.

src/fs/diskd/store_io_diskd.cc

index 61cce954252436b109a01849c49ef7824de4141d..a4e6148119fca107066e772012e17b14b27f56c6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_io_diskd.cc,v 1.37 2003/08/09 12:31:41 hno Exp $
+ * $Id: store_io_diskd.cc,v 1.38 2003/08/23 12:33:04 robertc Exp $
  *
  * DEBUG: section 79    Squid-side DISKD I/O functions.
  * AUTHOR: Duane Wessels
@@ -630,6 +630,7 @@ DiskdIO::storeDiskdHandle(diomsg * M)
 
     if (M->newstyle) {
         DiskdFile *theFile = (DiskdFile *)M->callback_data;
+        theFile->RefCountDereference();
         theFile->completed (M);
     } else
         switch (M->mtype) {
@@ -668,6 +669,7 @@ storeDiskdSend(int mtype, DiskdIO *IO, int id, DiskdFile *theFile, int size, int
     static int seq_no = 0;
     M.mtype = mtype;
     M.callback_data = cbdataReference(theFile);
+    theFile->RefCountReference();
     M.size = size;
     M.offset = offset;
     M.status = -1;