bdeggleston commented on code in PR #65:
URL: https://github.com/apache/cassandra-accord/pull/65#discussion_r1411326316
##########
accord-core/src/test/java/accord/Utils.java:
##########
@@ -118,6 +123,16 @@ public static Txn writeTxn(Ranges ranges)
return new Txn.InMemory(ranges, MockStore.read(ranges),
MockStore.QUERY, MockStore.update(ranges));
}
+ public static Txn listWriteTxn(Node.Id client, Keys keys)
+ {
+ ListUpdate update = new ListUpdate(Function.identity());
+ for (Key k : keys)
+ update.put(k, 1);
Review Comment:
I don't understand what the problem is, wouldn't ListUpdate just append
another 1 if this was run twice?
--
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]