maedhroz commented on code in PR #3489:
URL: https://github.com/apache/cassandra/pull/3489#discussion_r1737077900
##########
src/java/org/apache/cassandra/service/accord/txn/TxnWrite.java:
##########
@@ -263,7 +263,7 @@ public Update complete(AccordUpdateParameters parameters)
if (!staticRow.isEmpty())
updateBuilder.add(staticRow);
- Row existing = !baseUpdate.isEmpty() ?
Iterables.getOnlyElement(baseUpdate) : null;
+ Row existing = baseUpdate.hasRows() ?
Iterables.getOnlyElement(baseUpdate) : null;
Review Comment:
Yeah, no reason we should have looked at the static row, as it's already
accounted for above...
--
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]