You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/01/22 11:36:02 UTC

[GitHub] little-cui commented on a change in pull request #253: SCB-269 dependency use domain-project-env level lock

little-cui commented on a change in pull request #253: SCB-269 dependency use domain-project-env level lock
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/253#discussion_r162909536
 
 

 ##########
 File path: server/service/util/dependency.go
 ##########
 @@ -1112,3 +1053,11 @@ func (dr *DependencyRelation) getConsumerOfSameServiceNameAndAppId(provider *pb.
 	}
 	return allConsumers, nil
 }
+
+func DependencyLock(lockKey string) (*etcdsync.DLock, error) {
+	return mux.Lock(mux.MuxType(lockKey))
+}
+
+func NewDependencyLockKey(domainProject, env string) string {
 
 Review comment:
   ????NewDependencyLockKey?????DependencyLock?????????

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services