功能
INFORMATION_SCHEMA.TDSTORE_LOCAL_METADATA_WRITE_FENCE用于展示节点各个 replication group 的 write fence 信息。字段说明
字段名 | 类型 | 描述 |
replication_group_id | bigint unsigned | write fence 所在的 replication group 的 ID。 |
schema_obj_id | int unsigned | write fence 的 ID。 |
schema_obj_version | int unsigned | write fence 的 version。 |
start_key | varchar(128) | write fence 的 start key。 |
end_key | varchar(128) | write fence 的 end_key。 |
is_online_ddl | bigint unsigned | 是否为 online ddl 创建的 write fence。(目前该字段已被废弃) |
示例
tdsql3_sys_local@localhost [information_schema]> select * from TDSTORE_LOCAL_METADATA_WRITE_FENCE limit 3 \\G*************************** 1. row ***************************replication_group_id: 257schema_obj_id: 10001schema_obj_version: 3start_key: 0x00002711end_key: 0x00002712is_online_ddl: 0*************************** 2. row ***************************replication_group_id: 257schema_obj_id: 10002schema_obj_version: 1start_key: 0x00002712end_key: 0x00002713is_online_ddl: 0*************************** 3. row ***************************replication_group_id: 257schema_obj_id: 10003schema_obj_version: 1start_key: 0x00002713end_key: 0x00002714is_online_ddl: 0