refineCollectionShardKey 事件
总结
说明
字段 | 类型 | 说明 | |||
---|---|---|---|---|---|
| 文档 | 一个 BSON对象,用作变更流事件的标识符。 恢复变更流时,此值用作
有关通过 | |||
| 时间戳 | ||||
| UUID | 标识发生更改的集合的 UUID。 6.0 版本中的新功能。 | |||
| 文档 | 受事件影响的命名空间(数据库和/或集合)。 | |||
| 字符串 | 发生事件的集合的名称。 | |||
| 字符串 | 发生事件的数据库的名称。 | |||
| 文档 | ||||
operationDescription. shardKey | 文档 | 发生更改的collection的分片键。 6.0 版本中的新功能。 | |||
operationDescription. oldShardKey | 文档 | 已更改collection的分片键。 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} } }