Make all operations share Session consistency setting

This commit is contained in:
Filipe Varela 2017-06-07 10:00:31 +01:00 committed by Oliver Beattie
parent 2d04bfc447
commit 2abd4b6998

View file

@ -164,7 +164,6 @@ func (c *CassandraBackend) List(prefix string) ([]string, error) {
stmt := fmt.Sprintf(`SELECT key FROM "%s" WHERE bucket = ?`, c.table) stmt := fmt.Sprintf(`SELECT key FROM "%s" WHERE bucket = ?`, c.table)
q := c.sess.Query(stmt, c.bucketName(prefix)) q := c.sess.Query(stmt, c.bucketName(prefix))
q = q.Consistency(gocql.One) // List does not need such strong consistency guarantees
iter := q.Iter() iter := q.Iter()
k, keys := "", []string{} k, keys := "", []string{}
for iter.Scan(&k) { for iter.Scan(&k) {