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 10:59:42 +0900
changeset 81061 9587b2455257f7889199c296aebcaf29bea4689b
parent 81060 c45be3579579ba940a061ea27b39309b3b3d72d4
child 81062 e78fd22c9457e24c787382e1e890b48f8c6b3c4a
push id9744
push userishikawa@yk.rim.or.jp
push dateSat, 09 Nov 2019 02:01:06 +0000
treeherdertry-comm-central@56c83244ac0e [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),