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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
069dd583
Commit
069dd583
authored
Mar 23, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: by default, do not retry to connect to MySQL server automatically
parent
7e7af30c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
neo/lib/config.py
neo/lib/config.py
+1
-1
neo/storage/database/manager.py
neo/storage/database/manager.py
+4
-2
No files found.
neo/lib/config.py
View file @
069dd583
...
...
@@ -106,7 +106,7 @@ class ConfigurationManager(object):
return
self
.
__get
(
'engine'
,
True
)
def
getWait
(
self
):
#
BUG
#
XXX: see also DatabaseManager.__init__
return
self
.
__get
(
'wait'
)
def
getDynamicMasterList
(
self
):
...
...
neo/storage/database/manager.py
View file @
069dd583
...
...
@@ -57,7 +57,7 @@ class DatabaseManager(object):
_deferred
=
0
_duplicating
=
_repairing
=
None
def
__init__
(
self
,
database
,
engine
=
None
,
wait
=
0
):
def
__init__
(
self
,
database
,
engine
=
None
,
wait
=
None
):
"""
Initialize the object.
"""
...
...
@@ -66,7 +66,9 @@ class DatabaseManager(object):
raise
ValueError
(
"Unsupported engine: %r not in %r"
%
(
engine
,
self
.
ENGINES
))
self
.
_engine
=
engine
self
.
_wait
=
wait
# XXX: Maybe the default should be to retry indefinitely.
# But for unit tests, we really want to never retry.
self
.
_wait
=
wait
or
0
self
.
_parse
(
database
)
self
.
_connect
()
...
...
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