Placeholder for DATA_DISK_SIZE

This commit is contained in:
obdev
2024-02-09 06:14:06 +00:00
committed by ob-robot
parent f6c34f0538
commit 01e1ddaf84
3 changed files with 22 additions and 0 deletions

View File

@ -2392,6 +2392,8 @@ typedef enum ObItemType
T_CANCEL_TRANSFER_PARTITION,
T_CANCEL_BALANCE_JOB,
T_AUTO_SPLIT_TABLET_SIZE,
T_DATA_DISK_SIZE,
T_MAX //Attention: add a new type before T_MAX
} ObItemType;

View File

@ -9375,6 +9375,25 @@ int ObInnerTableSchema::all_unit_config_schema(ObTableSchema &table_schema)
false, //is_nullable
false); //is_autoincrement
}
if (OB_SUCC(ret)) {
ObObj data_disk_size_default;
data_disk_size_default.set_int(-1);
ADD_COLUMN_SCHEMA_T("data_disk_size", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
0, //part_key_pos
ObIntType, //column_type
CS_TYPE_INVALID, //column_collation_type
sizeof(int64_t), //column_length
-1, //column_precision
-1, //column_scale
false, //is_nullable
false, //is_autoincrement
data_disk_size_default,
data_disk_size_default); //default_value
}
table_schema.set_index_using_type(USING_BTREE);
table_schema.set_row_store_type(ENCODING_ROW_STORE);
table_schema.set_store_format(OB_STORE_FORMAT_DYNAMIC_MYSQL);

View File

@ -810,6 +810,7 @@ def_table_schema(
('max_iops', 'int'),
('min_iops', 'int'),
('iops_weight', 'int'),
('data_disk_size', 'int', 'false', '-1'),
],
)