lilai23 commented on a change in pull request #757:
URL:
https://github.com/apache/servicecomb-service-center/pull/757#discussion_r532306737
##########
File path: syncer/server/http.go
##########
@@ -0,0 +1,44 @@
+package server
+
+import (
+ "github.com/apache/servicecomb-service-center/pkg/log"
+ "github.com/go-chassis/go-chassis/v2"
+ rf "github.com/go-chassis/go-chassis/v2/server/restful"
+ "github.com/go-chassis/openlog"
+ "net/http"
+)
+
+const (
+ Message = "Deliver full synchronization task success!"
+)
+
+func (s *Server) FullSync(b *rf.Context) {
+ s.mux.Lock()
+ s.triggered = true
Review comment:
定时任务tickhandle会检测这个triggered 如果是true会触发一次全量同步 然后置为false,可能会有竞争
----------------------------------------------------------------
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]