Fix migration using 500 tenant memory and mod
This commit is contained in:
parent
adbd94ded3
commit
1cadc34c90
@ -714,10 +714,11 @@ int ObSSTableMeta::deep_copy(
|
||||
|
||||
//================================== ObMigrationSSTableParam ==================================
|
||||
ObMigrationSSTableParam::ObMigrationSSTableParam()
|
||||
: basic_meta_(),
|
||||
column_checksums_(),
|
||||
: allocator_("SSTableParam", OB_MALLOC_NORMAL_BLOCK_SIZE, MTL_ID()),
|
||||
basic_meta_(),
|
||||
column_checksums_(OB_MALLOC_NORMAL_BLOCK_SIZE, ModulePageAllocator(allocator_)),
|
||||
table_key_(),
|
||||
column_default_checksums_(),
|
||||
column_default_checksums_(OB_MALLOC_NORMAL_BLOCK_SIZE, ModulePageAllocator(allocator_)),
|
||||
is_small_sstable_(false)
|
||||
{
|
||||
}
|
||||
@ -734,6 +735,7 @@ void ObMigrationSSTableParam::reset()
|
||||
column_default_checksums_.reset();
|
||||
basic_meta_.reset();
|
||||
is_small_sstable_ = false;
|
||||
allocator_.reset();
|
||||
}
|
||||
|
||||
bool ObMigrationSSTableParam::is_valid() const
|
||||
|
@ -280,6 +280,7 @@ private:
|
||||
static const int64_t MIGRATION_SSTABLE_PARAM_VERSION = 1;
|
||||
typedef common::ObSEArray<int64_t, common::OB_ROW_DEFAULT_COLUMNS_COUNT> ColChecksumArray;
|
||||
public:
|
||||
common::ObArenaAllocator allocator_;
|
||||
ObSSTableBasicMeta basic_meta_;
|
||||
ColChecksumArray column_checksums_;
|
||||
storage::ObITable::TableKey table_key_;
|
||||
|
@ -1474,12 +1474,15 @@ ObStorageHATableInfoMgr::ObStorageHATabletTableInfoMgr::ObStorageHATabletTableIn
|
||||
: is_inited_(false),
|
||||
tablet_id_(),
|
||||
status_(ObCopyTabletStatus::MAX_STATUS),
|
||||
copy_table_info_array_()
|
||||
allocator_("HATableInfo", OB_MALLOC_NORMAL_BLOCK_SIZE, MTL_ID()),
|
||||
copy_table_info_array_(OB_MALLOC_NORMAL_BLOCK_SIZE, ModulePageAllocator(allocator_)),
|
||||
tablet_meta_()
|
||||
{
|
||||
}
|
||||
|
||||
ObStorageHATableInfoMgr::ObStorageHATabletTableInfoMgr::~ObStorageHATabletTableInfoMgr()
|
||||
{
|
||||
allocator_.reset();
|
||||
}
|
||||
|
||||
int ObStorageHATableInfoMgr::ObStorageHATabletTableInfoMgr::init(
|
||||
|
@ -225,6 +225,7 @@ public:
|
||||
bool is_inited_;
|
||||
common::ObTabletID tablet_id_;
|
||||
storage::ObCopyTabletStatus::STATUS status_;
|
||||
common::ObArenaAllocator allocator_;
|
||||
common::ObArray<blocksstable::ObMigrationSSTableParam> copy_table_info_array_;
|
||||
ObMigrationTabletParam tablet_meta_;
|
||||
DISALLOW_COPY_AND_ASSIGN(ObStorageHATabletTableInfoMgr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user