Browse Source

mysql or postgres: log find error

pull/1446/head
Chris Lu 4 years ago
parent
commit
72b0a5f1d1
  1. 1
      weed/filer/abstract_sql/abstract_sql_store.go

1
weed/filer/abstract_sql/abstract_sql_store.go

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

Loading…
Cancel
Save