Remove unusable/broken RocksDB code and options

The Broker RockSDB data store backend was previously unusable
and broken, so all code and options related to it are now removed.
This commit is contained in:
Jon Siwek 2021-01-11 11:11:13 -08:00
parent 54b52eb197
commit 321a027d07
10 changed files with 12 additions and 73 deletions

View file

@ -55,7 +55,6 @@ export {
type BackendType: enum {
MEMORY,
SQLITE,
ROCKSDB,
};
## Options to tune the SQLite storage backend.
@ -66,18 +65,9 @@ export {
path: string &default = "";
};
## Options to tune the RocksDB storage backend.
type RocksDBOptions: record {
## File system path of the database.
## If left empty, will be derived from the name of the store,
## and use the '.rocksdb' file suffix.
path: string &default = "";
};
## Options to tune the particular storage backends.
type BackendOptions: record {
sqlite: SQLiteOptions &default = SQLiteOptions();
rocksdb: RocksDBOptions &default = RocksDBOptions();
};
## Create a master data store which contains key-value pairs.

View file

@ -393,9 +393,6 @@ function create_store(name: string, persistent: bool &default=F): Cluster::Store
if ( info$options$sqlite$path == default_options$sqlite$path )
info$options$sqlite$path = path + ".sqlite";
if ( info$options$rocksdb$path == default_options$rocksdb$path )
info$options$rocksdb$path = path + ".rocksdb";
}
if ( persistent )
@ -405,8 +402,6 @@ function create_store(name: string, persistent: bool &default=F): Cluster::Store
info$backend = Cluster::default_persistent_backend;
break;
case Broker::SQLITE:
fallthrough;
case Broker::ROCKSDB:
# no-op: user already asked for a specific persistent backend.
break;
default: