[infinispan-issues] [JBoss JIRA] (ISPN-6789) EntryWrappingInterceptor computes location twice on backup owners

Pedro Ruivo (JIRA) issues at jboss.org
Thu Jun 16 15:08:00 EDT 2016


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

Pedro Ruivo updated ISPN-6789:
------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> EntryWrappingInterceptor computes location twice on backup owners 
> ------------------------------------------------------------------
>
>                 Key: ISPN-6789
>                 URL: https://issues.jboss.org/browse/ISPN-6789
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 9.0.0.Alpha2, 8.2.2.Final
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>            Priority: Minor
>             Fix For: 9.0.0.Alpha3
>
>
> {{cdl.localNodeIsPrimaryOwner(key) || (cdl.localNodeIsOwner(key) && !ctx.isOriginLocal())}} computes the owner twice. In replicated mode, the {{localNodeIsOwner()}} is cheaper, so it's better to call {{localNodeIsPrimaryOwner()}} only on the originator.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list