Merge pull request #2198 from nivekuil/tokenpolicy

This commit is contained in:
Chris Lu 2021-07-16 08:55:55 -07:00 committed by GitHub
commit 3f31c4091a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ func (store *CassandraStore) FindEntry(ctx context.Context, fullpath util.FullPa
var data []byte var data []byte
if err := store.session.Query( if err := store.session.Query(
"SELECT meta FROM filemeta WHERE directory=? AND name=?", "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 { if err != gocql.ErrNotFound {
return nil, filer_pb.ErrNotFound return nil, filer_pb.ErrNotFound
} }