非常感谢。
db.createDomain("mydomain",["group1","group2"],{AutoSplit:true})
写入数据后,再增加一个group3
domain.alter({Groups:["group1","group2","group3"]})
db.snapshot(8)
{
"Attribute": 1,
"AutoSplit": true,
"CataInfo": [
{
"ID": 0,
"GroupID": 1003,
"GroupName": "group1",
"LowBound": {
"": 0
},
"UpBound": {
"": 512
}
},
{
"ID": 1,
"GroupID": 1004,
"GroupName": "group2",
"LowBound": {
"": 512
},
"UpBound": {
"": 1024
}
}
],
"EnsureShardingIndex": true,
"InternalV": 3,
"Name": "cs.bar",
"Partition": 1024,
"ReplSize": 1,
"ShardingKey": {
"userid": 1
},
"ShardingType": "hash",
"Version": 4,
"_id": {
"$oid": "56493e5be3177ccb872179f5"
}
}
为什么看不到group3?新增数据也无法写进新增的group3中