jameshartig commented on code in PR #1793:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1793#discussion_r1945903013


##########
session.go:
##########
@@ -949,6 +950,10 @@ type Query struct {
 
        // routingInfo is a pointer because Query can be copied and copyable 
struct can't hold a mutex.
        routingInfo *queryRoutingInfo
+
+       // hostID specifies the host on which the query should be executed.
+       // If it is empty, then the host is picked by HostSelectionPolicy
+       hostID string

Review Comment:
   it's an internal field so we can call it whatever. again, i think that it's 
obvious enough as-is without "target" but i'm fine internally if there's a need 
to clarify.



##########
cassandra_test.go:
##########
@@ -3347,3 +3346,53 @@ func TestQuery_NamedValues(t *testing.T) {
                t.Fatal(err)
        }
 }
+
+func TestQuery_SetHostID(t *testing.T) {
+       // This test ensures that queries are sent to the specified host only

Review Comment:
   Agreed



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