]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Call ioCompletedNotification after we are done with the opening sequence,
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 1 Feb 2011 20:35:42 +0000 (13:35 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 1 Feb 2011 20:35:42 +0000 (13:35 -0700)
not in the middle of it. The effect should be the same, but the logs may be
easier to read, and there will be fewer chances of getting into a reentrant
mess of some kind.

src/DiskIO/IpcIo/IpcIoFile.cc

index 2564a7bd4758545ee0619c19415ee270312aedfc..300b746d351548c3931e7fa90eee8ed6447cc281 100644 (file)
@@ -47,14 +47,13 @@ IpcIoFile::open(int flags, mode_t mode, RefCount<IORequestor> callback)
         if (error_)
             return;
 
-        ioRequestor->ioCompletedNotification();
-
         Ipc::HereIamMessage ann(Ipc::StrandCoord(KidIdentifier, getpid()));
         ann.strand.tag = dbName;
         Ipc::TypedMsgHdr message;
         ann.pack(message);
         SendMessage(Ipc::coordinatorAddr, message);
 
+        ioRequestor->ioCompletedNotification();
         return;
        }