[infinispan-issues] [JBoss JIRA] Updated: (ISPN-1289) Improve FileCacheStore.loadBucket

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Aug 2 07:53:23 EDT 2011


     [ https://issues.jboss.org/browse/ISPN-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani updated ISPN-1289:
--------------------------------

    Fix Version/s: 5.0.0.FINAL
         Priority: Minor  (was: Major)
       Complexity: Low


> Improve FileCacheStore.loadBucket
> ---------------------------------
>
>                 Key: ISPN-1289
>                 URL: https://issues.jboss.org/browse/ISPN-1289
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Loaders and Stores
>    Affects Versions: 5.0.0.CR8
>            Reporter: Robert Stupp
>            Assignee: Manik Surtani
>            Priority: Minor
>             Fix For: 5.0.0.FINAL
>
>
> The method FileCacheStore.loadBucket() does not need to call "new FileInputStream()", when the file is empty (length==0).
> So it might be better to add the following lines before the call to "new FileInputStream(bucketFile)":
>              // BEGIN: new stuff
>              if (bucketFile.length()==0)
>                  return null;
>              // END: new stuff

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list