Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
9eafc693
Unverified
Commit
9eafc693
authored
Sep 12, 2019
by
Brian Gann
Committed by
GitHub
Sep 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSSQL: Fix memory leak when debug enabled (#19049)
* fix for #19049
parent
81c326b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pkg/tsdb/mssql/mssql.go
+3
-2
No files found.
pkg/tsdb/mssql/mssql.go
View file @
9eafc693
...
...
@@ -68,8 +68,9 @@ func (t *mssqlRowTransformer) Transform(columnTypes []*sql.ColumnType, rows *cor
values
:=
make
([]
interface
{},
len
(
columnTypes
))
valuePtrs
:=
make
([]
interface
{},
len
(
columnTypes
))
for
i
,
stype
:=
range
columnTypes
{
t
.
log
.
Debug
(
"type"
,
"type"
,
stype
)
for
i
:=
range
columnTypes
{
// debug output on large tables causes high memory utilization/leak
// t.log.Debug("type", "type", stype)
valuePtrs
[
i
]
=
&
values
[
i
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment