func (fdb *fdbSlice) setCommittedCount() {
	mainDbInfo, err := fdb.main[0].Info()
	if err == nil {
		platform.StoreUint64(&fdb.committedCount, mainDbInfo.DocCount())
	} else {
		logging.Errorf("ForestDB setCommittedCount failed %v", err)
	}
}
Example #2
0
func (s *statsManager) handleConfigUpdate(cmd Message) {
	cfg := cmd.(*MsgConfigUpdate)
	s.config.Store(cfg.GetConfig())
	platform.StoreUint64(&s.statsLogDumpInterval, cfg.GetConfig()["settings.statsLogDumpInterval"].Uint64())
	s.supvCmdch <- &MsgSuccess{}
}