소스 검색

删除集群名

wangchuanjin 4 년 전
부모
커밋
dad9f9b990
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/mongodb/mongodb.go

+ 3 - 3
src/mongodb/mongodb.go

@@ -278,10 +278,10 @@ func (m *MongodbSim) InitPool() {
 		}
 		opts.SetAuth(cre)
 	}
-	ms := strings.Split(m.MongodbAddr, ",")
+	/*ms := strings.Split(m.MongodbAddr, ",")
 	if m.ReplSet == "" && len(ms) > 1 {
-		//m.ReplSet = "qfws"
-	}
+		m.ReplSet = "qfws"
+	}*/
 	if m.ReplSet != "" {
 		opts.SetReplicaSet(m.ReplSet)
 		opts.SetDirect(false)