mongodb, replicates and error: { “$err” : “not master and slaveOk=false”, “code” : 13435 }

前端 未结 8 1454
遥遥无期
遥遥无期 2020-11-30 17:24

I tried mongo replica sets for the first time.

I am using ubuntu on ec2 and I booted up three instances. I used the private IP address of each of the instances. I p

8条回答
  •  [愿得一人]
    2020-11-30 17:51

    WARNING: slaveOk() is deprecated and may be removed in the next major release. Please use secondaryOk() instead. rs.secondaryOk()

提交回复
热议问题