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
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
Show 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:
Stores data, preserving history. All available storage nodes are in use
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)
...
...
neo.conf
View file @
ecc9c63c
...
...
@@ -60,7 +60,7 @@ partitions: 12
# Database must be created manually.
# - SQLite: path
# engine: Optional parameter for MySQL.
# Can be InnoDB (default)
, RocksDB or Toku
DB.
# Can be InnoDB (default)
or Rocks
DB.
# Admin node
[
admin
]
...
...
neo/storage/database/mysql.py
View file @
ecc9c63c
...
...
@@ -115,7 +115,7 @@ class MySQLDatabaseManager(DatabaseManager):
"""This class manages a database on MySQL."""
VERSION
=
3
ENGINES
=
"InnoDB"
,
"RocksDB"
,
"TokuDB"
ENGINES
=
"InnoDB"
,
"RocksDB"
_engine
=
ENGINES
[
0
]
# default engine
_use_partition
=
False
...
...
@@ -360,9 +360,6 @@ class MySQLDatabaseManager(DatabaseManager):
) ENGINE={}"""
.
format
(
cf
(
'obj_pk'
,
True
),
cf
(
'append_meta'
),
cf
(
'append_meta'
),
p
)
if
engine
==
"TokuDB"
:
engine
+=
" compression='tokudb_uncompressed'"
# The table "data" stores object data.
# We'd like to have partial index on 'hash' column (e.g. hash(4))
# 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
from
..mock
import
Mock
from
neo.lib.protocol
import
ZERO_OID
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
neo.storage.database
import
DatabaseFailure
from
neo.storage.database.mysql
import
(
MySQLDatabaseManager
,
...
...
@@ -121,12 +121,6 @@ class StorageMySQLdbRocksDBTests(StorageMySQLdbTests):
engine
=
"RocksDB"
test_lockDatabase
=
None
class
StorageMySQLdbTokuDBTests
(
StorageMySQLdbTests
):
engine
=
"TokuDB"
test_lockDatabase
=
None
del
StorageDBTests
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