robotLJW commented on a change in pull request #809:
URL: 
https://github.com/apache/servicecomb-service-center/pull/809#discussion_r555715393



##########
File path: datasource/mongo/ms.go
##########
@@ -1570,23 +1570,31 @@ func (ds *DataSource) GetInstance(ctx context.Context, 
request *discovery.GetOne
        }
 
        domainProject := util.ParseDomainProject(ctx)
-       services, err := findServices(ctx, 
discovery.MicroServiceToKey(domainProject, provider.ServiceInfo))
+       services, exist, err := findServices(ctx, 
discovery.MicroServiceToKey(domainProject, provider.ServiceInfo))

Review comment:
       这个是这样的,就是原先逻辑排查版本去查询服务,若存在应该需要返回成功。所以加了一个bool




----------------------------------------------------------------
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]


Reply via email to