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

	Rest = rest.New()

	Store = store.New()

	log.Debug("Initialized GlusterD context")
}
Beispiel #2
0
func doInit() {
	log.Debug("Initializing GlusterD context")

	initLocalStateDir()

	initMyUUID()
	initOpVersion()

	Rest = rest.New()

	initStore()

	log.Debug("Initialized GlusterD context")
}
Beispiel #3
0
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")
}