Skip to content

Commit 6422d85

Browse files
committed
sqlstats: rename localStatsProvider to localSQLStats
Epic: None Release note: None
1 parent f8961ab commit 6422d85

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pkg/sql/conn_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@ func (ex *connExecutor) initEvalCtx(ctx context.Context, evalCtx *extendedEvalCo
38393839
jobs: ex.extraTxnState.jobs,
38403840
validateDbZoneConfig: &ex.extraTxnState.validateDbZoneConfig,
38413841
statsProvider: ex.server.persistedSQLStats,
3842-
localStatsProvider: ex.server.localSqlStats,
3842+
localSQLStats: ex.server.localSqlStats,
38433843
indexUsageStats: ex.indexUsageStats,
38443844
statementPreparer: ex,
38453845
}

pkg/sql/crdb_internal.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ CREATE TABLE crdb_internal.node_statement_statistics (
14931493
}
14941494

14951495
var alloc tree.DatumAlloc
1496-
localSqlStats := p.extendedEvalCtx.localStatsProvider
1496+
localSqlStats := p.extendedEvalCtx.localSQLStats
14971497
nodeID, _ := p.execCfg.NodeInfo.NodeID.OptionalNodeID() // zero if not available
14981498

14991499
statementVisitor := func(_ context.Context, stats *appstatspb.CollectedStatementStatistics) error {
@@ -1716,7 +1716,7 @@ CREATE TABLE crdb_internal.node_transaction_statistics (
17161716
return noViewActivityOrViewActivityRedactedRoleError(p.User())
17171717
}
17181718

1719-
localMemSqlStats := p.extendedEvalCtx.localStatsProvider
1719+
localMemSqlStats := p.extendedEvalCtx.localSQLStats
17201720
nodeID, _ := p.execCfg.NodeInfo.NodeID.OptionalNodeID() // zero if not available
17211721

17221722
var alloc tree.DatumAlloc
@@ -1818,7 +1818,7 @@ CREATE TABLE crdb_internal.node_txn_stats (
18181818
return err
18191819
}
18201820

1821-
localMemSqlStats := p.extendedEvalCtx.localStatsProvider
1821+
localMemSqlStats := p.extendedEvalCtx.localSQLStats
18221822
nodeID, _ := p.execCfg.NodeInfo.NodeID.OptionalNodeID() // zero if not available
18231823

18241824
appTxnStatsVisitor := func(appName string, stats *appstatspb.TxnStats) error {

pkg/sql/planner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ type extendedEvalContext struct {
102102

103103
statsProvider *persistedsqlstats.PersistedSQLStats
104104

105-
localStatsProvider *sslocal.SQLStats
105+
localSQLStats *sslocal.SQLStats
106106

107107
indexUsageStats *idxusage.LocalIndexUsageStats
108108

@@ -558,7 +558,7 @@ func internalExtendedEvalCtx(
558558
Descs: tables,
559559
indexUsageStats: indexUsageStats,
560560
statsProvider: sqlStatsProvider,
561-
localStatsProvider: localSqlStatsProvider,
561+
localSQLStats: localSqlStatsProvider,
562562
jobs: newTxnJobsCollection(),
563563
}
564564
ret.copyFromExecCfg(execCfg)

0 commit comments

Comments
 (0)