Make all operations share Session consistency setting
This commit is contained in:
parent
2d04bfc447
commit
2abd4b6998
|
@ -164,7 +164,6 @@ func (c *CassandraBackend) List(prefix string) ([]string, error) {
|
|||
|
||||
stmt := fmt.Sprintf(`SELECT key FROM "%s" WHERE bucket = ?`, c.table)
|
||||
q := c.sess.Query(stmt, c.bucketName(prefix))
|
||||
q = q.Consistency(gocql.One) // List does not need such strong consistency guarantees
|
||||
iter := q.Iter()
|
||||
k, keys := "", []string{}
|
||||
for iter.Scan(&k) {
|
||||
|
|
Loading…
Reference in a new issue