|
|
@ -406,6 +406,7 @@ impl RocksdbKCVStore { |
|
|
|
/// The key is the encryption key for the data at rest.
|
|
|
|
/// The key is the encryption key for the data at rest.
|
|
|
|
pub fn open<'a>(path: &Path, key: [u8; 32]) -> Result<RocksdbKCVStore, StorageError> { |
|
|
|
pub fn open<'a>(path: &Path, key: [u8; 32]) -> Result<RocksdbKCVStore, StorageError> { |
|
|
|
let mut opts = Options::default(); |
|
|
|
let mut opts = Options::default(); |
|
|
|
|
|
|
|
opts.set_use_fsync(true); |
|
|
|
opts.create_if_missing(true); |
|
|
|
opts.create_if_missing(true); |
|
|
|
opts.create_missing_column_families(true); |
|
|
|
opts.create_missing_column_families(true); |
|
|
|
let env = Env::enc_env(key).unwrap(); |
|
|
|
let env = Env::enc_env(key).unwrap(); |
|
|
|