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
a8918047
Unverified
Commit
a8918047
authored
Mar 14, 2018
by
Carl Bergquist
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11238 from grafana/11155-mysql-issue
middleware: recover and retry on session start
parents
0ef94ea4
5f511dee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
pkg/services/session/session.go
+12
-0
No files found.
pkg/services/session/session.go
View file @
a8918047
...
...
@@ -105,6 +105,18 @@ type SessionWrapper struct {
}
func
(
s
*
SessionWrapper
)
Start
(
c
*
macaron
.
Context
)
error
{
// See https://github.com/grafana/grafana/issues/11155 for details on why
// a recover and retry is needed
defer
func
()
error
{
if
err
:=
recover
();
err
!=
nil
{
var
retryErr
error
s
.
session
,
retryErr
=
s
.
manager
.
Start
(
c
)
return
retryErr
}
return
nil
}()
var
err
error
s
.
session
,
err
=
s
.
manager
.
Start
(
c
)
return
err
...
...
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