From cddb6d0d0b4bfc315db555a8e1003327a17843dc Mon Sep 17 00:00:00 2001 From: zyy17 Date: Wed, 27 Dec 2023 19:16:42 +0800 Subject: [PATCH] chore: refine for code review comments --- config/metasrv.example.toml | 1 + src/meta-srv/src/metasrv.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index e32144c87b0f..8d165770b6ae 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -15,6 +15,7 @@ selector = "lease_based" use_memory_store = false # Whether to enable greptimedb telemetry, true by default. enable_telemetry = true +# If it's not empty, the metasrv will store all data with this key prefix. store_key_prefix = "" # Log options, see `standalone.example.toml` diff --git a/src/meta-srv/src/metasrv.rs b/src/meta-srv/src/metasrv.rs index f5e5816f467d..4d6782a2b630 100644 --- a/src/meta-srv/src/metasrv.rs +++ b/src/meta-srv/src/metasrv.rs @@ -102,7 +102,7 @@ impl Default for MetaSrvOptions { data_home: METASRV_HOME.to_string(), wal: WalConfig::default(), export_metrics: ExportMetricsOption::default(), - store_key_prefix: "".to_string(), + store_key_prefix: String::new(), } } }