Skip to content

Commit

Permalink
Merge pull request #171 from mykaul/peers_v1
Browse files Browse the repository at this point in the history
Do not try to query peers_v2 table upon connection against a ScyllaDB cluster
  • Loading branch information
avelanarius authored Apr 26, 2024
2 parents 3c32c6c + e40a582 commit 04e6e93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,10 @@ func (c *Conn) querySystemPeers(ctx context.Context, version cassVersion) *Iter
)

c.mu.Lock()
if isScyllaConn((c)) { // ScyllaDB does not support system.peers_v2
c.isSchemaV2 = false
}

isSchemaV2 := c.isSchemaV2
c.mu.Unlock()

Expand Down

0 comments on commit 04e6e93

Please sign in to comment.