func (s *schemaValidityInfo) SetExpireInfo(expired bool, lastSuccTS uint64) {
	s.mux.Lock()
	if s.isExpired != expired {
		log.Infof("[ddl] SetExpireInfo, original:%v current:%v lastSuccTS:%v", s.isExpired, expired, lastSuccTS)
		if expired {
			log.Errorf("[ddl] SetExpireInfo, information schema is expired %v, lastSuccTS:%v", expired, lastSuccTS)
			s.recoveredTS = lastSuccTS
		}
		s.isExpired = expired
	}
	s.mux.Unlock()
}
// SetExpireInfo sets the information of whether information schema is out of date.
// It's public in order to do the test.
SetExpireInfo sets the information of whether information schema is out of date.
It's public in order to do the test.
// SetExpireInfo sets the information of whether information schema is out of date . // It ' s public in order to do the test .
func (s *schemaValidityInfo) SetExpireInfo(expired bool, lastSuccTS uint64) {
	s.mux.Lock()
	if s.isExpired != expired {
		log.Infof("[ddl] SetExpireInfo, original:%v current:%v lastSuccTS:%v", s.isExpired, expired, lastSuccTS)
		if expired {
			log.Errorf("[ddl] SetExpireInfo, information schema is expired %v, lastSuccTS:%v", expired, lastSuccTS)
			s.recoveredTS = lastSuccTS
		}
		s.isExpired = expired
	}
	s.mux.Unlock()
}
func ( s * schemaValidityInfo ) SetExpireInfo ( expired bool , lastSuccTS uint64 ) { s . mux . Lock ( ) if s . isExpired != expired { log . Infof ( " " , s . isExpired , expired , lastSuccTS ) if expired { log . Errorf ( " " , expired , lastSuccTS ) s . recoveredTS = lastSuccTS } s . isExpired = expired } s . mux . Unlock ( ) }
SetExpireInfo sets the information of whether information schema is out of date.
SetExpireInfo sets the information of whether information schema is out of date .