Bug 1362483 - Fix Gloda hang. r+a=jorgk
authorandriusr@yahoo.com
Sun, 14 Jul 2019 19:43:32 +0200
changeset 32274 2e0c64654eb3c4f6d4e32cda97e5b66a15b39a34
parent 32273 6e71d980ac42caf174d127953ffd435689850737
child 32275 009cd7edaeab4deaad2fa7eba7681122ea420340
push id210
push usermozilla@jorgk.com
push dateSat, 17 Aug 2019 20:45:18 +0000
treeherdercomm-esr60@009cd7edaeab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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
@@ -1170,16 +1170,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;