lilai23 commented on a change in pull request #757:
URL: 
https://github.com/apache/servicecomb-service-center/pull/757#discussion_r532317820



##########
File path: syncer/server/server.go
##########
@@ -85,22 +86,38 @@ type Server struct {
        // Wraps the grpc server
        grpc *grpc.Server
 
+       revisionMap map[string]record
+
        eventQueue []*dump.WatchInstanceChangedEvent
 
+       mapLock sync.RWMutex
+
        queueLock sync.RWMutex
+

Review comment:
       
syncer里面包含了serf、etcd等服务,syncer这个server用于接收sc中的数据进行同步,在这个PR之前server里面已经实现了全量同步的逻辑,这个PR是在其中新增了增量同步的功能并作为主要的同步机制,另外新增httpserver是用于运维人员在增量同步发生异常告警时手动触发一次全量同步




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