add tx_op column for __all_virtual_tx_data

This commit is contained in:
obdev
2024-03-04 12:14:37 +00:00
committed by ob-robot
parent 6615941936
commit ee2645c688
5 changed files with 19 additions and 1 deletions

View File

@ -1891,6 +1891,7 @@ const int64_t MAX_MEMSTORE_CNT_IN_STORAGE = MAX_FROZEN_MEMSTORE_CNT_IN_STORAGE +
const int64_t MAX_TX_DATA_TABLE_STATE_LENGTH = 20; const int64_t MAX_TX_DATA_TABLE_STATE_LENGTH = 20;
const int64_t MAX_TX_DATA_STATE_LENGTH = 16; const int64_t MAX_TX_DATA_STATE_LENGTH = 16;
const int64_t MAX_UNDO_LIST_CHAR_LENGTH = 4096; const int64_t MAX_UNDO_LIST_CHAR_LENGTH = 4096;
const int64_t MAX_TX_OP_CHAR_LENGTH = 4096;
const int64_t MAX_TABLE_CNT_IN_STORAGE = MAX_SSTABLE_CNT_IN_STORAGE + MAX_MEMSTORE_CNT; const int64_t MAX_TABLE_CNT_IN_STORAGE = MAX_SSTABLE_CNT_IN_STORAGE + MAX_MEMSTORE_CNT;
const int64_t OB_MAX_PARTITION_NUM_MYSQL = 8192; const int64_t OB_MAX_PARTITION_NUM_MYSQL = 8192;
const int64_t OB_MAX_PARTITION_NUM_ORACLE = 65536; const int64_t OB_MAX_PARTITION_NUM_ORACLE = 65536;

View File

@ -2632,7 +2632,7 @@ int ObInnerTableSchema::all_virtual_tenant_memstore_allocator_info_schema(ObTabl
0, //part_key_pos 0, //part_key_pos
ObVarcharType, //column_type ObVarcharType, //column_type
CS_TYPE_INVALID, //column_collation_type CS_TYPE_INVALID, //column_collation_type
32, //column_length OB_MAX_POINTER_ADDR_LEN, //column_length
-1, //column_precision -1, //column_precision
-1, //column_scale -1, //column_scale
false, //is_nullable false, //is_nullable

View File

@ -5275,6 +5275,21 @@ int ObInnerTableSchema::all_virtual_tx_data_schema(ObTableSchema &table_schema)
false, //is_nullable false, //is_nullable
false); //is_autoincrement false); //is_autoincrement
} }
if (OB_SUCC(ret)) {
ADD_COLUMN_SCHEMA("tx_op", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
0, //part_key_pos
ObVarcharType, //column_type
CS_TYPE_INVALID, //column_collation_type
MAX_TX_OP_CHAR_LENGTH, //column_length
-1, //column_precision
-1, //column_scale
false, //is_nullable
false); //is_autoincrement
}
if (OB_SUCC(ret)) { if (OB_SUCC(ret)) {
table_schema.get_part_option().set_part_num(1); table_schema.get_part_option().set_part_num(1);
table_schema.set_part_level(PARTITION_LEVEL_ONE); table_schema.set_part_level(PARTITION_LEVEL_ONE);

View File

@ -13150,6 +13150,7 @@ def_table_schema(
('end_scn', 'uint'), ('end_scn', 'uint'),
('commit_version', 'uint'), ('commit_version', 'uint'),
('undo_status', 'varchar:MAX_UNDO_LIST_CHAR_LENGTH'), ('undo_status', 'varchar:MAX_UNDO_LIST_CHAR_LENGTH'),
('tx_op', 'varchar:MAX_TX_OP_CHAR_LENGTH'),
], ],
partition_columns = ['svr_ip', 'svr_port'], partition_columns = ['svr_ip', 'svr_port'],
vtable_route_policy = 'distributed', vtable_route_policy = 'distributed',

View File

@ -7992,6 +7992,7 @@ start_scn bigint(20) unsigned NO NULL
end_scn bigint(20) unsigned NO NULL end_scn bigint(20) unsigned NO NULL
commit_version bigint(20) unsigned NO NULL commit_version bigint(20) unsigned NO NULL
undo_status varchar(4096) NO NULL undo_status varchar(4096) NO NULL
tx_op varchar(4096) NO NULL
desc oceanbase.__all_virtual_task_opt_stat_gather_history; desc oceanbase.__all_virtual_task_opt_stat_gather_history;
Field Type Null Key Default Extra Field Type Null Key Default Extra
tenant_id bigint(20) NO PRI NULL tenant_id bigint(20) NO PRI NULL