提交 d3d110b7 编写于 作者: M ms 提交者: MizuhaHimuraki

remove memstore limit for inner table

上级 d1138322
...@@ -93,7 +93,9 @@ void* ObGMemstoreAllocator::alloc(AllocHandle& handle, int64_t size) ...@@ -93,7 +93,9 @@ void* ObGMemstoreAllocator::alloc(AllocHandle& handle, int64_t size)
hlist_.set_active(handle); hlist_.set_active(handle);
} }
} }
if (OB_FAIL(ObTenantManager::get_instance().check_tenant_out_of_memstore_limit(tenant_id, is_out_of_mem))) { if (handle.mt_.is_inner_table()) {
// inner table memory not limited by memstore
} else if (OB_FAIL(ObTenantManager::get_instance().check_tenant_out_of_memstore_limit(tenant_id, is_out_of_mem))) {
COMMON_LOG(ERROR, "fail to check tenant out of mem limit", K(ret), K(tenant_id)); COMMON_LOG(ERROR, "fail to check tenant out of mem limit", K(ret), K(tenant_id));
is_out_of_mem = true; is_out_of_mem = true;
} else if (is_out_of_mem && REACH_TIME_INTERVAL(1 * 1000 * 1000)) { } else if (is_out_of_mem && REACH_TIME_INTERVAL(1 * 1000 * 1000)) {
......
...@@ -2634,7 +2634,7 @@ int ObMemtable::check_standby_cluster_schema_condition_( ...@@ -2634,7 +2634,7 @@ int ObMemtable::check_standby_cluster_schema_condition_(
// user tables of normal tenants(not sys tenant) need to be checked by schema version of // user tables of normal tenants(not sys tenant) need to be checked by schema version of
// itself; // itself;
// sys tables of normal tenants(not sys tenant) need to be checked by schema version of sys tenent; // sys tables of normal tenants(not sys tenant) need to be checked by schema version of sys tenent;
uint64_t referred_tenant_id = is_inner_table(table_id) ? OB_SYS_TENANT_ID : tenant_id; uint64_t referred_tenant_id = common::is_inner_table(table_id) ? OB_SYS_TENANT_ID : tenant_id;
int64_t tenant_schema_version = 0; int64_t tenant_schema_version = 0;
if (OB_FAIL(GSCHEMASERVICE.get_tenant_refreshed_schema_version(referred_tenant_id, tenant_schema_version))) { if (OB_FAIL(GSCHEMASERVICE.get_tenant_refreshed_schema_version(referred_tenant_id, tenant_schema_version))) {
TRANS_LOG(WARN, TRANS_LOG(WARN,
......
...@@ -256,6 +256,7 @@ class ObMemtable : public ObIMemtable { ...@@ -256,6 +256,7 @@ class ObMemtable : public ObIMemtable {
virtual int get_frozen_schema_version(int64_t& schema_version) const override; virtual int get_frozen_schema_version(int64_t& schema_version) const override;
virtual bool is_frozen_memtable() const override; virtual bool is_frozen_memtable() const override;
virtual bool is_active_memtable() const override; virtual bool is_active_memtable() const override;
virtual bool is_inner_table() const { return common::is_inner_table(key_.table_id_); }
int set_snapshot_version(const int64_t snapshot_version); int set_snapshot_version(const int64_t snapshot_version);
int set_base_version(const int64_t base_version); int set_base_version(const int64_t base_version);
int set_start_log_ts(const int64_t start_ts); int set_start_log_ts(const int64_t start_ts);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册