You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dave Brosius (Updated) (JIRA)" <ji...@apache.org> on 2012/02/29 04:20:11 UTC

[jira] [Updated] (CASSANDRA-3977) [patch] choose a constant for 'no compression ration' that is outside the valid range of compression ratios

     [ https://issues.apache.org/jira/browse/CASSANDRA-3977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated CASSANDRA-3977:
------------------------------------

    Attachment: constant_not_in_range.diff
    
> [patch] choose a constant for 'no compression ration' that is outside the valid range of compression ratios
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3977
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3977
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: constant_not_in_range.diff
>
>
> code used Double.MIN_VALUE to represent a 'no compression ratio' constant. Since Double.MIN_Value is a valid compression ratio (albeit unlikely) switch the constant to -1 which is out of range.

--
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