[ https://issues.apache.org/jira/browse/LUCENE-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-4222. ---------------------------------------- Resolution: Fixed Sure, I just committed rev 1362113. > TieredMergePolicy.getFloorSegmentMB returns the wrong value > ----------------------------------------------------------- > > Key: LUCENE-4222 > URL: https://issues.apache.org/jira/browse/LUCENE-4222 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: 3.2 > Reporter: Chris Fuller > Assignee: Michael McCandless > Priority: Trivial > Fix For: 3.6.1, 4.0, 5.0 > > > {code} > public double getFloorSegmentMB() { > return floorSegmentBytes/1024*1024.; > } > {code} > This is clearly wrong. It should be either "/1024/1024." or "/(1024*1024.)". > As written, the / and * operations offset, so the value gets returned in > bytes. The merge policy itself uses the value directly rather than calling > this getter, so only the return value itself is wrong. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org