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
Levin Zimmermann
neoppod
Commits
ecc9c63c
Commit
ecc9c63c
authored
Feb 19, 2023
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql: drop support for TokuDB
parent
b83668e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
13 deletions
+4
-13
README.rst
README.rst
+1
-1
neo.conf
neo.conf
+1
-1
neo/storage/database/mysql.py
neo/storage/database/mysql.py
+1
-4
neo/tests/storage/testStorageMySQL.py
neo/tests/storage/testStorageMySQL.py
+1
-7
No files found.
README.rst
View file @
ecc9c63c
...
@@ -16,7 +16,7 @@ A NEO cluster is composed of the following types of nodes:
...
@@ -16,7 +16,7 @@ A NEO cluster is composed of the following types of nodes:
Stores data, preserving history. All available storage nodes are in use
Stores data, preserving history. All available storage nodes are in use
simultaneously. This offers redundancy and data distribution.
simultaneously. This offers redundancy and data distribution.
Available backends: MySQL (InnoDB
, RocksDB or Toku
DB), SQLite
Available backends: MySQL (InnoDB
or Rocks
DB), SQLite
- "admin" nodes (mandatory for startup, optional after)
- "admin" nodes (mandatory for startup, optional after)
...
...
neo.conf
View file @
ecc9c63c
...
@@ -60,7 +60,7 @@ partitions: 12
...
@@ -60,7 +60,7 @@ partitions: 12
# Database must be created manually.
# Database must be created manually.
# - SQLite: path
# - SQLite: path
# engine: Optional parameter for MySQL.
# engine: Optional parameter for MySQL.
# Can be InnoDB (default)
, RocksDB or Toku
DB.
# Can be InnoDB (default)
or Rocks
DB.
# Admin node
# Admin node
[
admin
]
[
admin
]
...
...
neo/storage/database/mysql.py
View file @
ecc9c63c
...
@@ -115,7 +115,7 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -115,7 +115,7 @@ class MySQLDatabaseManager(DatabaseManager):
"""This class manages a database on MySQL."""
"""This class manages a database on MySQL."""
VERSION
=
3
VERSION
=
3
ENGINES
=
"InnoDB"
,
"RocksDB"
,
"TokuDB"
ENGINES
=
"InnoDB"
,
"RocksDB"
_engine
=
ENGINES
[
0
]
# default engine
_engine
=
ENGINES
[
0
]
# default engine
_use_partition
=
False
_use_partition
=
False
...
@@ -360,9 +360,6 @@ class MySQLDatabaseManager(DatabaseManager):
...
@@ -360,9 +360,6 @@ class MySQLDatabaseManager(DatabaseManager):
) ENGINE={}"""
.
format
(
cf
(
'obj_pk'
,
True
),
) ENGINE={}"""
.
format
(
cf
(
'obj_pk'
,
True
),
cf
(
'append_meta'
),
cf
(
'append_meta'
),
p
)
cf
(
'append_meta'
),
cf
(
'append_meta'
),
p
)
if
engine
==
"TokuDB"
:
engine
+=
" compression='tokudb_uncompressed'"
# The table "data" stores object data.
# The table "data" stores object data.
# We'd like to have partial index on 'hash' column (e.g. hash(4))
# We'd like to have partial index on 'hash' column (e.g. hash(4))
# but 'UNIQUE' constraint would not work as expected.
# but 'UNIQUE' constraint would not work as expected.
...
...
neo/tests/storage/testStorageMySQL.py
View file @
ecc9c63c
...
@@ -19,7 +19,7 @@ from contextlib import closing, contextmanager
...
@@ -19,7 +19,7 @@ from contextlib import closing, contextmanager
from
..mock
import
Mock
from
..mock
import
Mock
from
neo.lib.protocol
import
ZERO_OID
from
neo.lib.protocol
import
ZERO_OID
from
neo.lib.util
import
p64
from
neo.lib.util
import
p64
from
..
import
DB_PREFIX
,
DB_USER
,
Patch
,
setupMySQL
from
..
import
DB_PREFIX
,
DB_USER
,
Patch
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
import
(
MySQLDatabaseManager
,
from
neo.storage.database.mysql
import
(
MySQLDatabaseManager
,
...
@@ -121,12 +121,6 @@ class StorageMySQLdbRocksDBTests(StorageMySQLdbTests):
...
@@ -121,12 +121,6 @@ class StorageMySQLdbRocksDBTests(StorageMySQLdbTests):
engine
=
"RocksDB"
engine
=
"RocksDB"
test_lockDatabase
=
None
test_lockDatabase
=
None
class
StorageMySQLdbTokuDBTests
(
StorageMySQLdbTests
):
engine
=
"TokuDB"
test_lockDatabase
=
None
del
StorageDBTests
del
StorageDBTests
if
__name__
==
"__main__"
:
if
__name__
==
"__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