ctp*_*ctp 7 indexing mongodb replicaset
将副本集迁移到独立后,我对生成的MongoDB设置有一些奇怪的问题.例如,缺少集合的索引.但尝试reIndex()集合失败也出现此错误消息:
> db.members.reIndex()
{
"errmsg" : "exception: dictionary myapp.members.$channel_id_1 should exist, but we got ENOENT",
"code" : 16988,
"ok" : 0
}
Run Code Online (Sandbox Code Playgroud)
问题是如何重新索引错过其索引的集合:)
非常感谢,克里斯