Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
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
Show 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
...
@@ -18,7 +18,7 @@ LOG_QUERIES = False
DATABASE_MANAGER_DICT
=
{
DATABASE_MANAGER_DICT
=
{
'Importer'
:
'importer.ImporterDatabaseManager'
,
'Importer'
:
'importer.ImporterDatabaseManager'
,
'MySQL'
:
'mysql
db
.MySQLDatabaseManager'
,
'MySQL'
:
'mysql.MySQLDatabaseManager'
,
'SQLite'
:
'sqlite.SQLiteDatabaseManager'
,
'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
...
@@ -25,7 +25,7 @@ from neo.lib.util import p64
from
..
import
DB_PREFIX
,
DB_USER
,
Patch
,
setupMySQLdb
from
..
import
DB_PREFIX
,
DB_USER
,
Patch
,
setupMySQLdb
from
.testStorageDBTests
import
StorageDBTests
from
.testStorageDBTests
import
StorageDBTests
from
neo.storage.database
import
DatabaseFailure
from
neo.storage.database
import
DatabaseFailure
from
neo.storage.database.mysql
db
import
MySQLDatabaseManager
from
neo.storage.database.mysql
import
MySQLDatabaseManager
class
ServerGone
(
object
):
class
ServerGone
(
object
):
...
...
tools/stress
View file @
9691459d
...
@@ -335,18 +335,18 @@ class Application(StressApplication):
...
@@ -335,18 +335,18 @@ class Application(StressApplication):
if
kill_mysqld
:
if
kill_mysqld
:
from
neo.scripts
import
neostorage
from
neo.scripts
import
neostorage
from
neo.storage.database
import
mysql
db
from
neo.storage.database
import
mysql
neostorage_main
=
neostorage
.
main
neostorage_main
=
neostorage
.
main
self
.
_kill_mysqld
=
kill_mysqld
=
SimpleQueue
()
self
.
_kill_mysqld
=
kill_mysqld
=
SimpleQueue
()
def
main
():
def
main
():
pid
=
os
.
getpid
()
pid
=
os
.
getpid
()
try
:
try
:
neostorage_main
()
neostorage_main
()
except
mysql
db
.
OperationalError
as
e
:
except
mysql
.
OperationalError
as
e
:
code
=
e
.
args
[
0
]
code
=
e
.
args
[
0
]
except
mysql
db
.
MysqlError
as
e
:
except
mysql
.
MysqlError
as
e
:
code
=
e
.
code
code
=
e
.
code
if
mysql
db
.
SERVER_LOST
!=
code
!=
mysqldb
.
SERVER_GONE_ERROR
:
if
mysql
.
SERVER_LOST
!=
code
!=
mysql
.
SERVER_GONE_ERROR
:
raise
raise
kill_mysqld
.
put
(
pid
)
kill_mysqld
.
put
(
pid
)
neostorage
.
main
=
main
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