HBASE-19199 RatioBasedCompactionPolicy#shouldPerformMajorCompaction() always return true when only one file needs to compact

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Guangxu Cheng 2017-11-07 18:18:57 +08:00 committed by tedyu
parent 85227d6a72
commit b6b4cd40cd
1 changed files with 1 additions and 1 deletions

View File

@ -106,8 +106,8 @@ public class RatioBasedCompactionPolicy extends SortedCompactionPolicy {
} else {
LOG.debug("Major compaction triggered on store " + regionInfo
+ "; time since last major compaction " + (now - lowTimestamp) + "ms");
result = true;
}
result = true;
}
return result;
}