Commit ecc9c63c authored by Julien Muchembled's avatar Julien Muchembled

mysql: drop support for TokuDB

parent b83668e7
...@@ -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 TokuDB), SQLite Available backends: MySQL (InnoDB or RocksDB), SQLite
- "admin" nodes (mandatory for startup, optional after) - "admin" nodes (mandatory for startup, optional after)
......
...@@ -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 TokuDB. # Can be InnoDB (default) or RocksDB.
# Admin node # Admin node
[admin] [admin]
......
...@@ -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.
......
...@@ -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__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment