403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.61
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/innodb/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb/t/blob_redo.test
# Embedded server does not support restarting.
--source include/not_embedded.inc
--source include/have_innodb.inc
--source include/have_innodb_max_16k.inc

--echo #
--echo # Bug #19498877 LIMITATION ON BLOB SIZE IS TOO STRICT, BLOB CAN
--echo # BE 10% OF TOTAL REDO LOG SIZE
--echo #

call mtr.add_suppression("InnoDB: Resizing redo log from");
call mtr.add_suppression("InnoDB: Starting to delete and rewrite log files.");
call mtr.add_suppression("InnoDB: New log files created, LSN=");

SET GLOBAL max_allowed_packet = 100*1024*1024;

--echo # Connection big_packets:
connect(big_packets,localhost,root,,);
connection big_packets;

CREATE TABLE t1 (a BIGINT PRIMARY KEY, b LONGBLOB) ENGINE=InnoDB;

# Insert a few rows (it doesn't really matter how many). These transactions
# are committed once they are acked, so they should not be lost.
INSERT INTO t1 (a, b) VALUES (1, '1');
INSERT INTO t1 (a, b) VALUES (2, '2');
INSERT INTO t1 (a, b) VALUES (3, '3');
INSERT INTO t1 (a, b) VALUES (4, '4');
INSERT INTO t1 (a, b) VALUES (5, '5');

start transaction;
INSERT INTO t1 (a, b) VALUES (6, REPEAT('a', 6*1024*1024));

--echo # Connection default:
connection default;

--source include/kill_and_restart_mysqld.inc

--disconnect big_packets

# We should see (1,2,3,4,5) here.
SELECT a, b FROM t1;

SET GLOBAL max_allowed_packet = 100*1024*1024;

--echo # Connection big_packets:
connect(big_packets,localhost,root,,);

start transaction;
UPDATE t1 SET b = REPEAT('a', 6*1024*1024) WHERE a = 1;

--echo # Connection default:
connection default;

--source include/kill_and_restart_mysqld.inc

--echo # Connection default:
connection default;

--disconnect big_packets

# We should see (1,2,3,4,5) here.
SELECT a, b FROM t1;

# Clean up.
DROP TABLE t1;

Youez - 2016 - github.com/yon3zu
LinuXploit