mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 05:42:57 +00:00
feat: Remove store from procedure config (#1489)
* feat(procedure): Add key prefix * feat: Remove store config from ProcedureConfig * refactor(procedure): Address review comments Add proc_path! macro and rename KEY_PREFIX to PROC_PATH * docs: Update procedure config examples
This commit is contained in:
@@ -188,7 +188,6 @@ enum TempDirGuard {
|
||||
pub struct TestGuard {
|
||||
_wal_tmp_dir: TempDir,
|
||||
data_tmp_dir: Option<TempDirGuard>,
|
||||
_procedure_tmp_dir: TempDir,
|
||||
}
|
||||
|
||||
impl TestGuard {
|
||||
@@ -207,7 +206,6 @@ pub fn create_tmp_dir_and_datanode_opts(
|
||||
name: &str,
|
||||
) -> (DatanodeOptions, TestGuard) {
|
||||
let wal_tmp_dir = create_temp_dir(&format!("gt_wal_{name}"));
|
||||
let procedure_tmp_dir = create_temp_dir(&format!("gt_procedure_{name}"));
|
||||
|
||||
let (store, data_tmp_dir) = get_test_store_config(&store_type, name);
|
||||
|
||||
@@ -221,9 +219,7 @@ pub fn create_tmp_dir_and_datanode_opts(
|
||||
..Default::default()
|
||||
},
|
||||
mode: Mode::Standalone,
|
||||
procedure: ProcedureConfig::from_file_path(
|
||||
procedure_tmp_dir.path().to_str().unwrap().to_string(),
|
||||
),
|
||||
procedure: ProcedureConfig::default(),
|
||||
..Default::default()
|
||||
};
|
||||
(
|
||||
@@ -231,7 +227,6 @@ pub fn create_tmp_dir_and_datanode_opts(
|
||||
TestGuard {
|
||||
_wal_tmp_dir: wal_tmp_dir,
|
||||
data_tmp_dir,
|
||||
_procedure_tmp_dir: procedure_tmp_dir,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user