Nikita Amelchev created IGNITE-29104:
----------------------------------------

             Summary: Remove dead code from lock candidates and transaction 
size tracking
                 Key: IGNITE-29104
                 URL: https://issues.apache.org/jira/browse/IGNITE-29104
             Project: Ignite
          Issue Type: Improvement
            Reporter: Nikita Amelchev
            Assignee: Nikita Amelchev


{\{GridCacheMvccCandidate}} assigns every lock candidate an ID from a shared 
static counter, but the ID is only read by \{{compareTo()}} and the 
\{{Externalizable}} methods, which are never called: candidates are neither 
sorted nor serialized.

{\{IgniteTxAdapter.applyTxSizes()}} is invoked on every transaction commit, but 
it iterates over \{{TxCounters.sizeDeltas}}, which is never populated.

Both should be removed to get rid of the dead code and of the needless 
per-candidate and per-transaction overhead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to