code: func (s *SessionVars) SetStatusFlag(flag uint16, on bool) {
  	if on {
  		s.Status |= flag
  		return
  	}
  	s.Status &= (^flag)
  }
docs: // SetStatusFlag sets the session server status variable.
  // If on is ture sets the flag in session status,
  // otherwise removes the flag.