Merge pull request #10522 from hahnjo/fix-compaction-cache-snapshots

Fix compaction logic on infrequent cache snapshots
pull/10591/head
Ben Johnson 2019-02-04 08:34:03 -07:00 committed by GitHub
commit def9589584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2008,7 +2008,7 @@ func (e *Engine) compact(wg *sync.WaitGroup) {
level1Groups := e.CompactionPlan.PlanLevel(1)
level2Groups := e.CompactionPlan.PlanLevel(2)
level3Groups := e.CompactionPlan.PlanLevel(3)
level4Groups := e.CompactionPlan.Plan(e.FileStore.LastModified())
level4Groups := e.CompactionPlan.Plan(e.LastModified())
atomic.StoreInt64(&e.stats.TSMOptimizeCompactionsQueue, int64(len(level4Groups)))
// If no full compactions are need, see if an optimize is needed