add tx_op column for __all_virtual_tx_data
This commit is contained in:
1
deps/oblib/src/lib/ob_define.h
vendored
1
deps/oblib/src/lib/ob_define.h
vendored
@ -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_STATE_LENGTH = 16;
|
||||
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 OB_MAX_PARTITION_NUM_MYSQL = 8192;
|
||||
const int64_t OB_MAX_PARTITION_NUM_ORACLE = 65536;
|
||||
|
||||
@ -2632,7 +2632,7 @@ int ObInnerTableSchema::all_virtual_tenant_memstore_allocator_info_schema(ObTabl
|
||||
0, //part_key_pos
|
||||
ObVarcharType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
32, //column_length
|
||||
OB_MAX_POINTER_ADDR_LEN, //column_length
|
||||
-1, //column_precision
|
||||
-1, //column_scale
|
||||
false, //is_nullable
|
||||
|
||||
@ -5275,6 +5275,21 @@ int ObInnerTableSchema::all_virtual_tx_data_schema(ObTableSchema &table_schema)
|
||||
false, //is_nullable
|
||||
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)) {
|
||||
table_schema.get_part_option().set_part_num(1);
|
||||
table_schema.set_part_level(PARTITION_LEVEL_ONE);
|
||||
|
||||
@ -13150,6 +13150,7 @@ def_table_schema(
|
||||
('end_scn', 'uint'),
|
||||
('commit_version', 'uint'),
|
||||
('undo_status', 'varchar:MAX_UNDO_LIST_CHAR_LENGTH'),
|
||||
('tx_op', 'varchar:MAX_TX_OP_CHAR_LENGTH'),
|
||||
],
|
||||
partition_columns = ['svr_ip', 'svr_port'],
|
||||
vtable_route_policy = 'distributed',
|
||||
|
||||
@ -7992,6 +7992,7 @@ start_scn bigint(20) unsigned NO NULL
|
||||
end_scn bigint(20) unsigned NO NULL
|
||||
commit_version bigint(20) unsigned NO NULL
|
||||
undo_status varchar(4096) NO NULL
|
||||
tx_op varchar(4096) NO NULL
|
||||
desc oceanbase.__all_virtual_task_opt_stat_gather_history;
|
||||
Field Type Null Key Default Extra
|
||||
tenant_id bigint(20) NO PRI NULL
|
||||
|
||||
Reference in New Issue
Block a user