Skip to content

Commit

Permalink
Drop the manual compaction step
Browse files Browse the repository at this point in the history
We already compact the local DB on each write, so this should be
unneccessary. It is also causing crashes on some lower power devices,
presumably because it's holding open some transaction for too long and
erroring everything out after that.

#5348
  • Loading branch information
Stefan du Fresne committed Feb 12, 2019
1 parent f62e5ed commit 0a366e9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions webapp/src/js/bootstrapper/purger.js
Expand Up @@ -303,14 +303,6 @@ module.exports = function(DB, userCtx, initialReplication) {

const p = Promise.resolve()
.then(() => begin(userCtx))
.then(count => {
if (count) {
publish('optimise');
return DB.compact().then(() => count);
} else {
return count;
}
})
.then(count => publish('done', {totalPurged: count}));

p.on = (type, callback) => {
Expand Down

0 comments on commit 0a366e9

Please sign in to comment.