tianxiaoliang commented on a change in pull request #779:
URL:
https://github.com/apache/servicecomb-service-center/pull/779#discussion_r540784621
##########
File path: datasource/mongo/mongo.go
##########
@@ -88,3 +97,24 @@ func (ds *DataSource) initClient() error {
return nil
}
}
+
+func (ds *DataSource) createIndexes() (err error) {
+ err = client.GetMongoClient().CreateIndexes(context.TODO(),
CollectionService, []mongo.IndexModel{{
+ Keys: bsonx.Doc{{Key:
StringBuilder([]string{ColumnServiceInfo, ColumnServiceID}), Value:
bsonx.Int32(1)}},
Review comment:
alias在etcd里也用于约束?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]