Commit 9674059f authored by unknown's avatar unknown
Browse files

Add regex to detect the empty line that end the variable list.

Some variable names in 5.1 is soo long that there is no space inbetween 
name and value. Outputing a warning about it, as that should probably be fixed.
At least one space should be put between the name and value.

parent ddf0fa97
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -1189,10 +1189,20 @@ sub check_mysqld_features () {
	}
	else
	{
	  # The variable list is ended with a blank line, so when a line
	  # doesn't match the above regex, break the loop
	  # The variable list is ended with a blank line
	  if ( $line =~ /^[\s]*$/ )
	  {
	    last;
	  }
	  else
	  {
	    # Send out a warning, we should fix the variables that has no
	    # space between variable name and it's value
	    # or should it be fixed width column parsing? It does not
	    # look like that in function my_print_variables in my_getopt.c
	    mtr_warning("Could not parse variable list line : $line");
	  }
	}
      }
    }
  }