1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-28 05:12:13 +02:00

mysql or postgres: log find error

This commit is contained in:
Chris Lu 2020-09-01 22:25:17 -07:00
parent 2815bbe6c0
commit 72b0a5f1d1

View file

@ -118,6 +118,7 @@ func (store *AbstractSqlStore) FindEntry(ctx context.Context, fullpath util.Full
row := store.getTxOrDB(ctx).QueryRowContext(ctx, store.SqlFind, util.HashStringToLong(dir), name, dir)
var data []byte
if err := row.Scan(&data); err != nil {
glog.Errorf("find %s: %v", fullpath, err)
return nil, filer_pb.ErrNotFound
}