mirror of https://github.com/apache/lucene.git
LUCENE-8398: TieredMergePolicy.getMaxMergedSegmentMB has rounding error
This commit is contained in:
parent
4b9e2c406e
commit
8ce46b6c45
|
@ -160,6 +160,9 @@ Bug Fixes:
|
|||
TokenStream if a token consisting entirely of delimiter characters was
|
||||
encountered, but preserve_original was set. (Alan Woodward)
|
||||
|
||||
|
||||
* LUCENE-8398: TieredMergePolicy.getMaxMergedSegmentMB has rounding error (Erick Erickson)
|
||||
|
||||
Changes in Runtime Behavior:
|
||||
|
||||
* LUCENE-7976: TieredMergePolicy now respects maxSegmentSizeMB by default when executing
|
||||
|
|
|
@ -192,7 +192,7 @@ public class TieredMergePolicy extends MergePolicy {
|
|||
*
|
||||
* @see #setMaxMergedSegmentMB */
|
||||
public double getMaxMergedSegmentMB() {
|
||||
return maxMergedSegmentBytes/1024/1024.;
|
||||
return maxMergedSegmentBytes/1024.0/1024.0;
|
||||
}
|
||||
|
||||
/** Controls how aggressively merges that reclaim more
|
||||
|
|
Loading…
Reference in New Issue