dcapwell commented on code in PR #4078:
URL: https://github.com/apache/cassandra/pull/4078#discussion_r2040305874


##########
src/java/org/apache/cassandra/cql3/statements/TransactionStatement.java:
##########
@@ -315,14 +313,42 @@ TxnCondition createCondition(QueryOptions options)
         return new TxnCondition.BooleanGroup(TxnCondition.Kind.AND, result);
     }
 
-    List<TxnWrite.Fragment> createWriteFragments(ClientState state, 
QueryOptions options, Map<Integer, NamedSelect> autoReads, Set<Key> keys)
+    TableMetadatas collectTables()
+    {
+        TableMetadatas.Collector collector = new TableMetadatas.Collector();
+        if (updates != null)
+        {
+            for (ModificationStatement modification : updates)
+                collector.add(modification.metadata);
+        }
+        if (assignments != null)
+        {
+            for (NamedSelect select : assignments)
+                collector.add(select.select.table);
+        }
+        if (returningSelect != null)
+        {
+            collector.add(returningSelect.select.table);
+        }
+        if (returningReferences != null)
+        {
+            for (RowDataReference ref : returningReferences)
+                collector.add(ref.table());
+        }
+        return collector.build();
+    }
+    private Keys toKeys(SortedSet<Key> keySet)

Review Comment:
   ```suggestion
       
       private Keys toKeys(SortedSet<Key> keySet)
   ```



-- 
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