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>
Sat, 12 Feb 2022 10:52:19 +0900
changeset 113729 3b74cdd57aba14f928c1869a6423365833d26fca
parent 113728 f03bccc9c7408cf7c80a3622f2ee52a900ff5b42
child 113730 8d06874e5356276b876963dec51bea5f3fd168e1
push id15363
push userishikawa@yk.rim.or.jp
push dateSat, 12 Feb 2022 01:52:53 +0000
treeherdertry-comm-central@c99bc5a88b76 [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
@@ -736,17 +736,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);