From b9a67d46c5a1dc6ee18ab0835e6db014b0100c04 Mon Sep 17 00:00:00 2001 From: nivekuil Date: Tue, 20 Jul 2021 14:47:39 -0700 Subject: [PATCH] cassandra: use LocalQuorum for all queries This changes this filer store from eventual to strong consistency at the cost of read performance. --- weed/filer/cassandra/cassandra_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/cassandra/cassandra_store.go b/weed/filer/cassandra/cassandra_store.go index d917da518..7affab9ec 100644 --- a/weed/filer/cassandra/cassandra_store.go +++ b/weed/filer/cassandra/cassandra_store.go @@ -124,7 +124,7 @@ func (store *CassandraStore) FindEntry(ctx context.Context, fullpath util.FullPa var data []byte if err := store.session.Query( "SELECT meta FROM filemeta WHERE directory=? AND name=?", - dir, name).Consistency(gocql.LocalOne).Scan(&data); err != nil { + dir, name).Scan(&data); err != nil { if err != gocql.ErrNotFound { return nil, filer_pb.ErrNotFound }