code: func (s *schemaValidator) isRelatedTablesChanged(currVer int64, tableIDs []int64) bool {
  	if len(s.deltaSchemaInfos) == 0 {
  		logutil.Logger(context.Background()).Info("schema change history is empty", zap.Int64("currVer", currVer))
  		return true
  	}
  	newerDeltas := s.findNewerDeltas(currVer)
  	if len(newerDeltas) == len(s.deltaSchemaInfos) {
  		logutil.Logger(context.Background()).Info("the schema version is much older than the latest version", zap.Int64("currVer", currVer),
  			zap.Int64("latestSchemaVer", s.latestSchemaVer))
  		return true
  	}
  	for _, item := range newerDeltas {
  		if hasRelatedTableID(item.relatedTableIDs, tableIDs) {
  			return true
  		}
  	}
  	return false
  }
docs: // isRelatedTablesChanged returns the result whether relatedTableIDs is changed
  // from usedVer to the latest schema version.
  // NOTE, this function should be called under lock!