aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornivekuil <mail@nivekuil.com>2021-07-20 14:47:39 -0700
committernivekuil <mail@nivekuil.com>2021-07-20 14:47:39 -0700
commitb9a67d46c5a1dc6ee18ab0835e6db014b0100c04 (patch)
treecf3740671afe4eccc257b8d880ab9cbe0b973545
parent2faf96f00261ba34ce5f56cbb91c0adc4b369edf (diff)
downloadseaweedfs-b9a67d46c5a1dc6ee18ab0835e6db014b0100c04.tar.xz
seaweedfs-b9a67d46c5a1dc6ee18ab0835e6db014b0100c04.zip
cassandra: use LocalQuorum for all queries
This changes this filer store from eventual to strong consistency at the cost of read performance.
-rw-r--r--weed/filer/cassandra/cassandra_store.go2
1 files changed, 1 insertions, 1 deletions
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
}