【发布时间】:2020-12-21 15:43:12
【问题描述】:
我正在尝试更新名为 hot 的现有区域范围
{ "id" : 1507520572 }, { "id" : { "$maxKey" : 1 }
使用
sh.updateZoneKeyRange('db.collection', { id: 1507520572 }, { id: 9999999999 }, 'hot'),
但我得到了错误
Zone range: { id: 1507520572.0 } -->> { id: 9999999999.0 } on hot is overlapping with existing: { id: 1507520572 } -->> { id: MaxKey } on hot.
我的计划是创建一个从9999999999 到MaxKey 的新区域。我怎样才能做到这一点?
【问题讨论】: