diff --git a/deps/oblib/src/lib/statistic_event/ob_stat_event.h b/deps/oblib/src/lib/statistic_event/ob_stat_event.h index c971565aeb..2c82a92fcf 100644 --- a/deps/oblib/src/lib/statistic_event/ob_stat_event.h +++ b/deps/oblib/src/lib/statistic_event/ob_stat_event.h @@ -206,6 +206,8 @@ STAT_EVENT_ADD_DEF(TABLET_CACHE_MISS, "tablet cache miss", ObStatClassIds::CACHE STAT_EVENT_ADD_DEF(SCHEMA_HISTORY_CACHE_HIT, "schema history cache hit", ObStatClassIds::CACHE, 50061, false, true) STAT_EVENT_ADD_DEF(SCHEMA_HISTORY_CACHE_MISS, "schema history cache miss", ObStatClassIds::CACHE, 50062, false, true) +STAT_EVENT_ADD_DEF(OPT_SYSTEM_STAT_CACHE_HIT, "opt system stat cache hit", ObStatClassIds::CACHE, 50063, false, true) +STAT_EVENT_ADD_DEF(OPT_SYSTEM_STAT_CACHE_MISS, "opt system stat cache miss", ObStatClassIds::CACHE, 50064, false, true) // STORAGE //STAT_EVENT_ADD_DEF(MEMSTORE_LOGICAL_READS, "MEMSTORE_LOGICAL_READS", STORAGE, "MEMSTORE_LOGICAL_READS") diff --git a/src/share/ob_rpc_struct.cpp b/src/share/ob_rpc_struct.cpp index 83de30a818..747308dcb9 100755 --- a/src/share/ob_rpc_struct.cpp +++ b/src/share/ob_rpc_struct.cpp @@ -5624,10 +5624,17 @@ DEF_TO_STRING(ObUpdateStatCacheArg) K_(tenant_id), K_(partition_ids), K_(column_ids), - K_(no_invalidate)); + K_(no_invalidate), + K_(update_system_stats_only)); return pos; } -OB_SERIALIZE_MEMBER(ObUpdateStatCacheArg, tenant_id_, table_id_, partition_ids_, column_ids_, no_invalidate_); +OB_SERIALIZE_MEMBER(ObUpdateStatCacheArg, + tenant_id_, + table_id_, + partition_ids_, + column_ids_, + no_invalidate_, + update_system_stats_only_); OB_SERIALIZE_MEMBER(ObSplitPartitionBatchArg, split_info_); OB_SERIALIZE_MEMBER((ObSequenceDDLArg, ObDDLArg), stmt_type_, diff --git a/src/share/ob_rpc_struct.h b/src/share/ob_rpc_struct.h index 6dd6fa95e1..803ad03278 100755 --- a/src/share/ob_rpc_struct.h +++ b/src/share/ob_rpc_struct.h @@ -1265,7 +1265,8 @@ public: table_id_(common::OB_INVALID_ID), partition_ids_(), column_ids_(), - no_invalidate_(false) + no_invalidate_(false), + update_system_stats_only_(false) {} virtual ~ObUpdateStatCacheArg() {} void rest() @@ -1275,6 +1276,7 @@ public: partition_ids_.reset(); column_ids_.reset(); no_invalidate_ = false; + update_system_stats_only_ = false; } bool is_valid() const; int assign(const ObUpdateStatCacheArg &other) { @@ -1282,6 +1284,7 @@ public: tenant_id_ = other.tenant_id_; table_id_ = other.table_id_; no_invalidate_ = other.no_invalidate_; + update_system_stats_only_ = other.update_system_stats_only_; if (OB_FAIL(ObDDLArg::assign(other))) { SHARE_LOG(WARN, "fail to assign ddl arg", KR(ret)); } else if (OB_FAIL(partition_ids_.assign(other.partition_ids_))) { @@ -1297,6 +1300,7 @@ public: common::ObSArray partition_ids_; common::ObSArray column_ids_; bool no_invalidate_; + bool update_system_stats_only_; DECLARE_VIRTUAL_TO_STRING; };