Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
neoppod
Commits
26f898c1
Commit
26f898c1
authored
6 years ago
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! mysql: fix remaining places where a server disconnection was not catched
parent
1a064725
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
neo/storage/database/mysqldb.py
neo/storage/database/mysqldb.py
+1
-1
No files found.
neo/storage/database/mysqldb.py
View file @
26f898c1
...
@@ -122,6 +122,7 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -122,6 +122,7 @@ class MySQLDatabaseManager(DatabaseManager):
kwd
[
'unix_socket'
]
=
os
.
path
.
expanduser
(
self
.
socket
)
kwd
[
'unix_socket'
]
=
os
.
path
.
expanduser
(
self
.
socket
)
logging
.
info
(
'connecting to MySQL on the database %s with user %s'
,
logging
.
info
(
'connecting to MySQL on the database %s with user %s'
,
self
.
db
,
self
.
user
)
self
.
db
,
self
.
user
)
self
.
_active
=
0
if
self
.
_wait
<
0
:
if
self
.
_wait
<
0
:
timeout_at
=
None
timeout_at
=
None
else
:
else
:
...
@@ -142,7 +143,6 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -142,7 +143,6 @@ class MySQLDatabaseManager(DatabaseManager):
log
=
logging
.
exception
log
=
logging
.
exception
log
(
'Connection to MySQL failed, retrying.'
)
log
(
'Connection to MySQL failed, retrying.'
)
time
.
sleep
(
1
)
time
.
sleep
(
1
)
self
.
_active
=
0
self
.
_config
=
{}
self
.
_config
=
{}
conn
=
self
.
conn
conn
=
self
.
conn
conn
.
autocommit
(
False
)
conn
.
autocommit
(
False
)
...
...
This diff is collapsed.
Click to expand it.
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