occupy for max_failures of __all_tenant_scheduler_job
This commit is contained in:
parent
30097a942f
commit
230369e51b
@ -4189,6 +4189,25 @@ int ObInnerTableSchema::all_virtual_tenant_scheduler_job_schema(ObTableSchema &t
|
||||
database_id_default,
|
||||
database_id_default); //default_value
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ObObj max_failures_default;
|
||||
max_failures_default.set_int(0);
|
||||
ADD_COLUMN_SCHEMA_T("max_failures", //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
|
||||
true, //is_nullable
|
||||
false, //is_autoincrement
|
||||
max_failures_default,
|
||||
max_failures_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);
|
||||
|
@ -1002,6 +1002,21 @@ int ObInnerTableSchema::all_virtual_tenant_scheduler_job_real_agent_ora_schema(O
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("MAX_FAILURES", //column_name
|
||||
++column_id, //column_id
|
||||
0, //rowkey_id
|
||||
0, //index_id
|
||||
0, //part_key_pos
|
||||
ObNumberType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
38, //column_length
|
||||
38, //column_precision
|
||||
0, //column_scale
|
||||
true, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("GMT_CREATE", //column_name
|
||||
++column_id, //column_id
|
||||
|
@ -8969,6 +8969,25 @@ int ObInnerTableSchema::all_tenant_scheduler_job_schema(ObTableSchema &table_sch
|
||||
database_id_default,
|
||||
database_id_default); //default_value
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ObObj max_failures_default;
|
||||
max_failures_default.set_int(0);
|
||||
ADD_COLUMN_SCHEMA_T("max_failures", //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
|
||||
true, //is_nullable
|
||||
false, //is_autoincrement
|
||||
max_failures_default,
|
||||
max_failures_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);
|
||||
|
@ -4435,7 +4435,8 @@ def_table_schema(
|
||||
('destination_name', 'varchar:128', 'true'),
|
||||
('interval_ts', 'int', 'true'),
|
||||
('user_id', 'int', 'true', 'OB_INVALID_ID'),
|
||||
('database_id', 'int', 'true', 'OB_INVALID_ID')
|
||||
('database_id', 'int', 'true', 'OB_INVALID_ID'),
|
||||
('max_failures', 'int', 'true', '0')
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -6073,6 +6073,7 @@ destination_name varchar(128) YES NULL
|
||||
interval_ts bigint(20) YES NULL
|
||||
user_id bigint(20) YES -1
|
||||
database_id bigint(20) YES -1
|
||||
max_failures bigint(20) YES 0
|
||||
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_tenant_scheduler_job;
|
||||
IF(count(*) >= 0, 1, 0)
|
||||
1
|
||||
|
Loading…
x
Reference in New Issue
Block a user