ddl kv mgr occupy smaller memory
This commit is contained in:
@ -312,7 +312,7 @@ int ObDDLTableMergeTask::init(const ObDDLTableMergeDagParam &ddl_dag_param)
|
|||||||
int ObDDLTableMergeTask::process()
|
int ObDDLTableMergeTask::process()
|
||||||
{
|
{
|
||||||
int ret = OB_SUCCESS;
|
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
|
#ifdef ERRSIM
|
||||||
if (0 != GCONF.errsim_max_ddl_sstable_count) {
|
if (0 != GCONF.errsim_max_ddl_sstable_count) {
|
||||||
MAX_DDL_SSTABLE = GCONF.errsim_max_ddl_sstable_count;
|
MAX_DDL_SSTABLE = GCONF.errsim_max_ddl_sstable_count;
|
||||||
|
|||||||
@ -97,8 +97,9 @@ private:
|
|||||||
void cleanup_unlock();
|
void cleanup_unlock();
|
||||||
void destroy();
|
void destroy();
|
||||||
bool is_commit_success_unlock() const;
|
bool is_commit_success_unlock() const;
|
||||||
|
public:
|
||||||
|
static const int64_t MAX_DDL_KV_CNT_IN_STORAGE = 16;
|
||||||
private:
|
private:
|
||||||
static const int64_t MAX_DDL_KV_CNT_IN_STORAGE = 64;
|
|
||||||
bool is_inited_;
|
bool is_inited_;
|
||||||
share::SCN success_start_scn_;
|
share::SCN success_start_scn_;
|
||||||
share::ObLSID ls_id_;
|
share::ObLSID ls_id_;
|
||||||
|
|||||||
Reference in New Issue
Block a user