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
Vincent Pelletier
neoppod
Commits
9691459d
Commit
9691459d
authored
Feb 14, 2023
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename mysqldb.py to mysql.py
parent
933412cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
neo/storage/database/__init__.py
neo/storage/database/__init__.py
+1
-1
neo/storage/database/mysql.py
neo/storage/database/mysql.py
+0
-0
neo/tests/storage/testStorageMySQL.py
neo/tests/storage/testStorageMySQL.py
+1
-1
tools/stress
tools/stress
+4
-4
No files found.
neo/storage/database/__init__.py
View file @
9691459d
...
...
@@ -18,7 +18,7 @@ LOG_QUERIES = False
DATABASE_MANAGER_DICT
=
{
'Importer'
:
'importer.ImporterDatabaseManager'
,
'MySQL'
:
'mysql
db
.MySQLDatabaseManager'
,
'MySQL'
:
'mysql.MySQLDatabaseManager'
,
'SQLite'
:
'sqlite.SQLiteDatabaseManager'
,
}
...
...
neo/storage/database/mysql
db
.py
→
neo/storage/database/mysql.py
View file @
9691459d
File moved
neo/tests/storage/testStorageMySQL.py
View file @
9691459d
...
...
@@ -25,7 +25,7 @@ from neo.lib.util import p64
from
..
import
DB_PREFIX
,
DB_USER
,
Patch
,
setupMySQLdb
from
.testStorageDBTests
import
StorageDBTests
from
neo.storage.database
import
DatabaseFailure
from
neo.storage.database.mysql
db
import
MySQLDatabaseManager
from
neo.storage.database.mysql
import
MySQLDatabaseManager
class
ServerGone
(
object
):
...
...
tools/stress
View file @
9691459d
...
...
@@ -335,18 +335,18 @@ class Application(StressApplication):
if
kill_mysqld
:
from
neo.scripts
import
neostorage
from
neo.storage.database
import
mysql
db
from
neo.storage.database
import
mysql
neostorage_main
=
neostorage
.
main
self
.
_kill_mysqld
=
kill_mysqld
=
SimpleQueue
()
def
main
():
pid
=
os
.
getpid
()
try
:
neostorage_main
()
except
mysql
db
.
OperationalError
as
e
:
except
mysql
.
OperationalError
as
e
:
code
=
e
.
args
[
0
]
except
mysql
db
.
MysqlError
as
e
:
except
mysql
.
MysqlError
as
e
:
code
=
e
.
code
if
mysql
db
.
SERVER_LOST
!=
code
!=
mysqldb
.
SERVER_GONE_ERROR
:
if
mysql
.
SERVER_LOST
!=
code
!=
mysql
.
SERVER_GONE_ERROR
:
raise
kill_mysqld
.
put
(
pid
)
neostorage
.
main
=
main
...
...
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