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, 09 Nov 2019 11:11:57 +0900
changeset 81104 230fa4b32682cc499256e04bf8fd930b7aa88383
parent 81103 9dd140559a2c2e692c787cbdba37e364b90034f2
child 81105 45fde53308e3661d72b4d19cf7ed707bffd6e27a
push id9745
push userishikawa@yk.rim.or.jp
push dateSat, 09 Nov 2019 02:12:14 +0000
treeherdertry-comm-central@f62e5475decc [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
@@ -807,17 +807,21 @@ 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);
 
     int64_t before_seek_pos;
     nsresult rv2 = seekableOutStream->Tell(&before_seek_pos);
     MOZ_ASSERT(NS_SUCCEEDED(rv2),