refineCollectionShardKey 事件
摘要
描述
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
_id | 文档 | ABSON 对象,用作更改流事件的标识符。此值用作
有关通过 | |||
clusterTime | 时间戳 |
由于 oplog 大小限制,多文档事务可能创建多个 oplog 条目。在一个事务中,在特定 oplog 条目中排队的更改流事件共享相同的 具有相同 要识别单个事务的事件,您可以在更改流事件文档中使用 已更改版本8.0. | |||
collectionUUID | UUID | UUID 识别发生更改的集合。 新版本6.0. | |||
ns | 文档 | 受事件影响的作用域(数据库和或集合)。 | |||
ns.coll | 字符串 | 事件发生时发生的集合的名称。 | |||
ns.db | 字符串 | 事件发生时发生的数据库的名称。 | |||
operationDescription | 文档 | ||||
operationDescription. shardKey | 文档 | 发生更改的集合的 分片键。 新版本6.0. | |||
operationDescription. oldShardKey | 文档 | 更改的集合的 分片键。 新版本6.1. |
示例
以下示例显示了 refineCollectionShardKey
事件
{ "_id": { <ResumeToken> }, "operationType": "refineCollectionShardKey", "clusterTime": Timestamp({ t: 1654894852, i: 52 }), "collectionUUID": UUID("98046a1a-b649-4e5b-9c75-67594221ce19"), "ns": {"db": "reshard_collection_event", "coll": "coll"}, "operationDescription": { "shardKey": {"_id": 1, akey: 1}, "oldShardKey": {"_id": 1} } }