Summary摘要
refineCollectionShardKeyNew in version 6.0.在版本6.0中新增。A当修改集合的分片键时,会发生refineCollectionShardKeyevent occurs when a collection's shard key is modified.refineCollectionShardKey事件。
Description描述
_id |
| |
clusterTime | Timestamp |
|
collectionUUID | UUID |
UUID
|
ns |
| |
ns.coll |
| |
ns.db |
| |
operationDescription |
| |
operationDescription.shardKey |
| |
operationDescription.oldShardKey |
|
Example示例
The following example shows a 以下示例显示了refineCollectionShardKey event: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}
}
}