[infinispan-issues] [JBoss JIRA] (ISPN-3756) Unnecessary wall clock call for immortal entries

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Mon Nov 25 09:10:05 EST 2013


Galder Zamarreño created ISPN-3756:
--------------------------------------

             Summary: Unnecessary wall clock call for immortal entries
                 Key: ISPN-3756
                 URL: https://issues.jboss.org/browse/ISPN-3756
             Project: Infinispan
          Issue Type: Bug
    Affects Versions: 6.0.0.Final
            Reporter: Galder Zamarreño
            Assignee: Mircea Markus
             Fix For: 6.1.0.Final


When updating immortal entries Infinispan calls up the wall clock time unnecessarily.

{code}
      if (e != null) {
         e.setValue(v);
         InternalCacheEntry original = e;
         e = entryFactory.update(e, metadata);
         // we have the same instance. So we need to reincarnate.
         if (original == e) {
-->            e.reincarnate(timeService.wallClockTime());
         }
      } else {
         // this is a brand-new entry
         e = entryFactory.create(k, v, metadata);
      }
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list