Skip to content

Commit

Permalink
Enable support for ScyllaDB #801
Browse files Browse the repository at this point in the history
Passes in 3 "nil" references to the ScanCAS() call when inserting cluster membership data.
This change is needed for the gocql client to work against an instance of ScyllaDB.
Change was verified against a ScyllaDB cluster.
This is a low risk change as if it causes issues, it would be caught immediately.
  • Loading branch information
mastermanu committed Oct 6, 2020
1 parent c2d50b8 commit 1bbdee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/persistence/cassandra/cassandraQueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (q *cassandraQueue) insertInitialQueueMetadataRecord(
version := 0
clusterAckLevels := map[string]int64{}
query := q.session.Query(templateInsertQueueMetadataQuery, queueType, clusterAckLevels, version)
_, err := query.ScanCAS()
_, err := query.ScanCAS(nil, nil, nil)
if err != nil {
return fmt.Errorf("failed to insert initial queue metadata record: %v, Type: %v", err, queueType)
}
Expand Down

0 comments on commit 1bbdee5

Please sign in to comment.