Bug 1362483 - Fix Gloda hang. r+a=jorgk
authorandriusr@yahoo.com
Sun, 14 Jul 2019 22:37:57 +0200
changeset 36099 037a19a922a15ab5d90c7b04b503bd6e12a94e17
parent 36092 88262b52018dba31463fe4756aeae2ffe98355f1
child 36100 093a473a56de757942b12b3df9386d358aff11c6
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
bugs1362483
Bug 1362483 - Fix Gloda hang. r+a=jorgk
mailnews/db/gloda/modules/index_msg.js
--- a/mailnews/db/gloda/modules/index_msg.js
+++ b/mailnews/db/gloda/modules/index_msg.js
@@ -1141,16 +1141,18 @@ var GlodaMsgIndexer = {
           let result = headerIter.next();
           if (result.done) {
             headerIter = null;
             msgHdr = null;
             // do the loop check again
             continue;
           }
           msgHdr = result.value;
+        } else {
+          keepIterHeader = false;
         }
       }
 
       if (msgHdr) {
         numHeadersSeen++;
         if (numHeadersSeen % HEADER_CHECK_SYNC_BLOCK_SIZE == 0)
           yield this.kWorkSync;