Commit 95cecad7 authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

ha_innobase.cc:

  Fix bug: if skip-innodb was defined SHOW INNODB STATUS crashed
parent 6851efff
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3552,6 +3552,14 @@ innodb_show_status(

  	DBUG_ENTER("innodb_show_status");

	if (innodb_skip) {

	        fprintf(stderr,
      "Cannot call SHOW INNODB STATUS because skip-innodb is defined\n");

		DBUG_RETURN(-1);
	}

	/* We let the InnoDB Monitor to output at most 100 kB of text, add
	a safety margin of 10 kB for buffer overruns */