From f0331438057cb8ce2460d5071d0bb99a9cb4fe86 Mon Sep 17 00:00:00 2001 From: Revendell <2312237896@qq.com> Date: Mon, 3 Apr 2023 18:31:25 +0800 Subject: [PATCH] add inner table position for object storage service --- deps/oblib/src/rpc/obrpc/ob_rpc_packet_list.h | 6 ++++++ src/objit/include/objit/common/ob_item_type.h | 1 + src/share/inner_table/ob_inner_table_schema_def.py | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/deps/oblib/src/rpc/obrpc/ob_rpc_packet_list.h b/deps/oblib/src/rpc/obrpc/ob_rpc_packet_list.h index ba4b5f6503..42cec7430f 100644 --- a/deps/oblib/src/rpc/obrpc/ob_rpc_packet_list.h +++ b/deps/oblib/src/rpc/obrpc/ob_rpc_packet_list.h @@ -956,3 +956,9 @@ PCODE_DEF(OB_TABLET_MAJOR_FREEZE, 0x1558) // 1561-1570 for lob access PCODE_DEF(OB_LOB_QUERY, 0x1561) //PCODE_DEF(OB_FLUSH_EXTERNAL_TABLE_FILE_CACHE, 0X1571) + +// 1572-1580 for object storage service +// PCODE_DEF(OB_ADD_STORAGE, 0x1572) +// PCODE_DEF(OB_DROP_STORAGE, 0x1573) +// PCODE_DEF(OB_ALTER_STORAGE, 0x1574) +// PCODE_DEF(OB_GET_SERVER_STORAGE, 0X1575); diff --git a/src/objit/include/objit/common/ob_item_type.h b/src/objit/include/objit/common/ob_item_type.h index 5cb28f6b09..15ac491334 100755 --- a/src/objit/include/objit/common/ob_item_type.h +++ b/src/objit/include/objit/common/ob_item_type.h @@ -2206,6 +2206,7 @@ typedef enum ObItemType T_TRIM_SPACE, T_NULL_IF_EXETERNAL, T_EMPTY_FIELD_AS_NULL, + T_ADMIN_STORAGE,// used to support oss storage for clog/sstable T_MAX //Attention: add a new type before T_MAX } ObItemType; diff --git a/src/share/inner_table/ob_inner_table_schema_def.py b/src/share/inner_table/ob_inner_table_schema_def.py index 788fd22722..ba69b97181 100644 --- a/src/share/inner_table/ob_inner_table_schema_def.py +++ b/src/share/inner_table/ob_inner_table_schema_def.py @@ -5459,6 +5459,8 @@ def_table_schema( # 450 : __all_external_table_file # 451 : __all_task_opt_stat_gather_history # 452 : __all_table_opt_stat_gather_history +# 453 : __all_zone_storage +# 454 : __all_zone_storage_operation ################################################################################ # Virtual Table (10000, 20000] # Normally, virtual table's index_using_type should be USING_HASH. @@ -11426,6 +11428,7 @@ def_table_schema( # 12383: __all_virtual_opt_stat_gather_monitor # 12384: __all_virtual_thread # 12385: __all_virtual_arbitration_member_info +# 12386: __all_virtual_server_storage # # 余留位置 # @@ -25635,6 +25638,9 @@ def_table_schema( # 21381: V$OB_THREAD # 21382: GV$OB_ARBITRATION_MEMBER_INFO # 21383: V$OB_ARBITRATION_MEMBER_INFO +# 21384: DBA_OB_ZONE_STORAGE +# 21385: GV$OB_SERVER_STORAGE +# 21386: V$OB_SERVER_STORAGE ################################################################################ # Oracle System View (25000, 30000]