ddl kv mgr occupy smaller memory

This commit is contained in:
simonjoylet
2023-03-10 03:14:32 +00:00
committed by ob-robot
parent 928beb2c85
commit 0df00274f4
2 changed files with 3 additions and 2 deletions

View File

@ -312,7 +312,7 @@ int ObDDLTableMergeTask::init(const ObDDLTableMergeDagParam &ddl_dag_param)
int ObDDLTableMergeTask::process()
{
int ret = OB_SUCCESS;
int64_t MAX_DDL_SSTABLE = 128;
int64_t MAX_DDL_SSTABLE = ObTabletDDLKvMgr::MAX_DDL_KV_CNT_IN_STORAGE * 0.5;
#ifdef ERRSIM
if (0 != GCONF.errsim_max_ddl_sstable_count) {
MAX_DDL_SSTABLE = GCONF.errsim_max_ddl_sstable_count;

View File

@ -97,8 +97,9 @@ private:
void cleanup_unlock();
void destroy();
bool is_commit_success_unlock() const;
public:
static const int64_t MAX_DDL_KV_CNT_IN_STORAGE = 16;
private:
static const int64_t MAX_DDL_KV_CNT_IN_STORAGE = 64;
bool is_inited_;
share::SCN success_start_scn_;
share::ObLSID ls_id_;