MCPcopy Create free account
hub / github.com/deepflowio/deepflow / migrateMetadb

Function migrateMetadb

server/controller/controller/master.go:66–73  ·  view source on GitHub ↗

migrate db by master region master controller

(cfg *config.ControllerConfig)

Source from the content-addressed store, hash-verified

64
65// migrate db by master region master controller
66func migrateMetadb(cfg *config.ControllerConfig) {
67 err := migrator.Migrate(cfg.MetadbCfg)
68 if err != nil {
69 log.Errorf("migrate metadb failed: %s", err.Error())
70 time.Sleep(time.Second)
71 os.Exit(0)
72 }
73}
74
75func checkAndStartMasterFunctions(
76 cfg *config.ControllerConfig, ctx context.Context,

Callers 2

StartFunction · 0.85

Calls 2

ErrorMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected