From 2faf96f00261ba34ce5f56cbb91c0adc4b369edf Mon Sep 17 00:00:00 2001 From: nivekuil Date: Fri, 16 Jul 2021 04:29:46 -0700 Subject: [PATCH] cassandra: Use LocalOne instead of One consistency --- 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 f4856657e..d917da518 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.One).Scan(&data); err != nil { + dir, name).Consistency(gocql.LocalOne).Scan(&data); err != nil { if err != gocql.ErrNotFound { return nil, filer_pb.ErrNotFound }