Skip to content

Commit

Permalink
Merge pull request #3538 from tinyspeck/quiet-no-fieldcache-warning
Browse files Browse the repository at this point in the history
remove the verbose log when fieldinfo can't be cached
  • Loading branch information
sougou authored Jan 10, 2018
2 parents 6a55b81 + 6a90256 commit 635b518
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/vt/vttablet/tabletserver/query_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,7 @@ func (qe *QueryEngine) GetPlan(ctx context.Context, logStats *tabletenv.LogStats
plan.Rules = qe.queryRuleSources.FilterByPlan(sql, plan.PlanID, plan.TableName().String())
plan.Authorized = tableacl.Authorized(plan.TableName().String(), plan.PlanID.MinRole())
if plan.PlanID.IsSelect() {
if plan.FieldQuery == nil {
log.Warningf("Cannot cache field info: %s", sql)
} else {
if plan.FieldQuery != nil {
conn, err := qe.conns.Get(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit 635b518

Please sign in to comment.