From 2b6b979d5a98c61eba24fb64c543446c2546fdd6 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" <6406592+v0y4g3r@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:15:47 +0800 Subject: [PATCH] fix: remove datanode mysql options in standalone mode (#595) --- config/standalone.example.toml | 2 -- src/cmd/src/standalone.rs | 6 ------ 2 files changed, 8 deletions(-) diff --git a/config/standalone.example.toml b/config/standalone.example.toml index cf981a300f47..dc8b0519ab65 100644 --- a/config/standalone.example.toml +++ b/config/standalone.example.toml @@ -1,8 +1,6 @@ node_id = 0 mode = 'standalone' http_addr = '127.0.0.1:4000' -datanode_mysql_addr = '127.0.0.1:4406' -datanode_mysql_runtime_size = 4 wal_dir = '/tmp/greptimedb/wal/' [storage] diff --git a/src/cmd/src/standalone.rs b/src/cmd/src/standalone.rs index a61038979c4a..39b0b14fa66e 100644 --- a/src/cmd/src/standalone.rs +++ b/src/cmd/src/standalone.rs @@ -71,8 +71,6 @@ pub struct StandaloneOptions { pub mode: Mode, pub wal_dir: String, pub storage: ObjectStoreConfig, - pub datanode_mysql_addr: String, - pub datanode_mysql_runtime_size: usize, } impl Default for StandaloneOptions { @@ -88,8 +86,6 @@ impl Default for StandaloneOptions { mode: Mode::Standalone, wal_dir: "/tmp/greptimedb/wal".to_string(), storage: ObjectStoreConfig::default(), - datanode_mysql_addr: "127.0.0.1:4406".to_string(), - datanode_mysql_runtime_size: 4, } } } @@ -114,8 +110,6 @@ impl StandaloneOptions { DatanodeOptions { wal_dir: self.wal_dir, storage: self.storage, - mysql_addr: self.datanode_mysql_addr, - mysql_runtime_size: self.datanode_mysql_runtime_size, ..Default::default() } }