From d915c6dd264db08d8647faf49307260ac9eedc88 Mon Sep 17 00:00:00 2001 From: hnwyllmm Date: Fri, 22 Apr 2022 16:51:42 +0800 Subject: [PATCH] copy from data_dir config to variable datadir --- src/observer/ob_server_reload_config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/observer/ob_server_reload_config.cpp b/src/observer/ob_server_reload_config.cpp index 14ff71a2ee..a16c64eafb 100644 --- a/src/observer/ob_server_reload_config.cpp +++ b/src/observer/ob_server_reload_config.cpp @@ -348,5 +348,9 @@ int ObServerReloadConfig::operator()() LOG_WARN("fail to set location updater's thread cnt", KR(ret), K(location_thread_cnt)); } } + + { + ObSysVariables::set_value("datadir", GCONF.data_dir); + } return real_ret; } -- GitLab