################################
有時候,需要將處於OTHER狀態的副本集成員的數據恢復到其他副本集,這時候就需要將其狀態改為獨立的副本集:但是副本集名稱不能改變
apple:OTHER> cfg={_id:"apple",members:[{_id:1,host:"10.10.10.10:27007",priority:1}]} { "_id" : "apple", "members" : [ { "_id" : 1, "host" : "10.10.10.10:27007", "priority" : 1 } ] } apple:OTHER> rs.reconfig(cfg,{force:true}); { "ok" : 1, "operationTime" : Timestamp(1626170405, 9208), "$clusterTime" : { "clusterTime" : Timestamp(1626170405, 9208), "signature" : { "hash" : BinData(0,"4xkPCAN/xS7jGNs3wbogA0oIfQU="), "keyId" : NumberLong("6939954830009958401") } } } apple:OTHER>
############################