cassandra: Use LocalOne instead of One consistency

This commit is contained in:
nivekuil 2021-07-16 04:29:46 -07:00
parent 4be5b4ff5c
commit 2faf96f002

View file

@ -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
}