Bug 1362483 - Fix Gloda hang. r+a=jorgk BETA_68_CONTINUATION
authorandriusr@yahoo.com
Sun, 14 Jul 2019 22:37:57 +0200
branchBETA_68_CONTINUATION
changeset 36094 d9c1209339c10551c1a7de72e4dd2e0f55483422
parent 36093 f490f9e67f6599d7a5c9fc1d1d070c5166992e8d
child 36095 e6763c25c04949deb0dbc895c1b9edb28b4b741e
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;