maedhroz commented on code in PR #4518:
URL: https://github.com/apache/cassandra/pull/4518#discussion_r2612147919


##########
src/java/org/apache/cassandra/service/accord/txn/TxnUpdate.java:
##########
@@ -677,7 +700,19 @@ public TxnWrite apply(Timestamp executeAt, Data data)
         ClusterMetadata cm = ClusterMetadata.current();
         checkState(cm.epoch.getEpoch() >= executeAt.epoch(), "TCM epoch %d is 
< executeAt epoch %d", cm.epoch.getEpoch(), executeAt.epoch());
 
-        Pair<List<TxnWrite.Update>, SimpleBitSet> pair = 
processCondition(executeAt, data);
+        Pair<List<TxnWrite.Update>, SimpleBitSet> pair;

Review Comment:
   ```suggestion
           Pair<List<TxnWrite.Update>, SimpleBitSet> pair = null;
   ```
   ...and then you don't need the assignment in the `catch` block?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to