copy from data_dir config to variable datadir

This commit is contained in:
hnwyllmm 2023-01-04 11:08:06 +00:00 committed by ob-robot
parent 8ee98a51af
commit 23664d7d24
2 changed files with 11 additions and 7 deletions

View File

@ -271,6 +271,10 @@ int ObServerReloadConfig::operator()()
K(data_disk_size), K(data_disk_percentage), K(reserved_size));
}
}
{
ObSysVariables::set_value("datadir", GCONF.data_dir);
}
return real_ret;
}

View File

@ -21,9 +21,9 @@
namespace oceanbase
{
namespace common
{
class ObObj;
}
{
class ObObj;
}
namespace observer
{
@ -56,10 +56,10 @@ private:
PRIORITY,
CACHE_SIZE,
CACHE_STORE_SIZE,
CACHE_MAP_SIZE,
KV_CNT,
HIT_RATIO,
TOTAL_PUT_CNT,
CACHE_MAP_SIZE,
KV_CNT,
HIT_RATIO,
TOTAL_PUT_CNT,
TOTAL_HIT_CNT,
TOTAL_MISS_CNT,
HOLD_SIZE