예제 #1
0
func doInit() {
	log.Debug("Initializing GlusterD context")

	Rest = rest.New()

	Store = store.New()

	log.Debug("Initialized GlusterD context")
}
예제 #2
0
파일: context.go 프로젝트: sac/glusterd2
func doInit() {
	log.Debug("Initializing GlusterD context")

	initLocalStateDir()

	initMyUUID()
	initOpVersion()

	Rest = rest.New()

	initStore()

	log.Debug("Initialized GlusterD context")
}
예제 #3
0
파일: global.go 프로젝트: kshlm/glusterd2
func doInit() {
	log.Debug("Initializing GlusterD context")

	utils.InitDir(config.GetString("localstatedir"))

	initOpVersion()

	Rest = rest.New()

	// When glusterd is started for the first time, we will have Restart set to
	// false. That is when we'll have to initialize prefixes by passing true to
	// InitStore(). On subsequent restarts of glusterd, we would want to skip
	// initializing prefixes by passing false to InitStore()
	InitStore(!Restart)

	log.Debug("Initialized GlusterD context")
}