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:
parent
85227d6a72
commit
b6b4cd40cd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue