mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
54b52eb197
commit
321a027d07
10 changed files with 12 additions and 73 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue