Bug 1242046 - Removing unnecessary |Seek| that caused the C-C TB to operate slowly in terms of I/O draft
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Mon, 23 May 2022 03:03:51 +0900
changeset 116822 8fb8d1160e506d631182439d29c8f0a87db4db29
parent 116821 57eb169feb5ea5ed8b748bd4dd8a29fce2be1c8f
child 116823 237536d6a09f43d39831c4ef54cc9004185f509e
push id15955
push userishikawa@yk.rim.or.jp
push dateSun, 22 May 2022 18:04:18 +0000
treeherdertry-comm-central@beaacca97fbd [default view] [failures only]
bugs1242046
Bug 1242046 - Removing unnecessary |Seek| that caused the C-C TB to operate slowly in terms of I/O
mailnews/local/src/nsPop3Sink.cpp
--- a/mailnews/local/src/nsPop3Sink.cpp
+++ b/mailnews/local/src/nsPop3Sink.cpp
@@ -730,17 +730,20 @@ nsresult nsPop3Sink::WriteLineToMailbox(
       m_newMailParser->HandleLine(buffer.BeginReading(), bufferLen);
     // The following (!m_outFileStream etc) was added to make sure that we don't
     // write somewhere where for some reason or another we can't write to and
     // lose the messages See bug 62480
     NS_ENSURE_TRUE(m_outFileStream, NS_ERROR_OUT_OF_MEMORY);
 
     // To remove seeking to the end for each line to be written, remove the
     // following line. See bug 1116055 for details.
-#define SEEK_TO_END
+#if 0
+    // #define SEEK_TO_END
+#endif
+
 #ifdef SEEK_TO_END
     // seek to the end in case someone else has sought elsewhere in our stream.
     nsCOMPtr<nsISeekableStream> seekableOutStream =
         do_QueryInterface(m_outFileStream);
 
     if (seekableOutStream) {
       int64_t before_seek_pos;
       nsresult rv2 = seekableOutStream->Tell(&before_seek_pos);