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

Yuki Morishita updated CASSANDRA-4313:
--------------------------------------

    Description: 
Inside constructor, below condition is always evaluated to true:

{code}
if (caching != Caching.NONE || caching != Caching.ROWS_ONLY)
    CacheService.instance.keyCache.loadSaved(this);
{code}

should be

{code}
 if (caching == Caching.ALL || caching == Caching.KEYS_ONLY)
{code}

  was:
Inside constructor, below condition is always evaluated to true:

if (caching != Caching.NONE || caching != Caching.ROWS_ONLY)
    CacheService.instance.keyCache.loadSaved(this);

should be

 if (caching == Caching.ALL || caching == Caching.KEYS_ONLY)

    
> CFS always try to load key cache
> --------------------------------
>
>                 Key: CASSANDRA-4313
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4313
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Yuki Morishita
>            Assignee: Yuki Morishita
>            Priority: Trivial
>             Fix For: 1.2
>
>         Attachments: 4313.txt
>
>
> Inside constructor, below condition is always evaluated to true:
> {code}
> if (caching != Caching.NONE || caching != Caching.ROWS_ONLY)
>     CacheService.instance.keyCache.loadSaved(this);
> {code}
> should be
> {code}
>  if (caching == Caching.ALL || caching == Caching.KEYS_ONLY)
> {code}

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

        

Reply via email to