403Webshell
Server IP : 172.67.216.182  /  Your IP : 104.23.175.137
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-crash-16k.test
--source include/not_embedded.inc
--source include/not_crashrep.inc
--source include/have_debug.inc
--source include/have_innodb.inc
--source include/have_innodb_16k.inc

--echo #
--echo # Bug #16963396 INNODB: USE OF LARGE EXTERNALLY-STORED FIELDS MAKES
--echo # CRASH RECOVERY LOSE DATA
--echo #

# ..........................................................................

--echo #
--echo # Uncompressed Table - UPDATE Operation - Crash Test
--echo # Update that moves non-updated column to blob
--echo #

create table t2 (f1 bigint primary key, f2 longblob, f3 longblob,
  index(f2(10), f3(10))) engine=innodb;

insert into t2 values (1, repeat('%', 7000), repeat('+', 30));
select f1, length(f2), length(f3) from t2;

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

set debug_sync='ib_mv_nonupdated_column_offpage SIGNAL s1 WAIT_FOR go_update';

# The BLOB update will fail, and should disappear. However no data committed
# up to this point should be lost.
begin;
--send
update t2 set f3 = repeat('[', 3000);

--echo # Connection default:
connection default;
set debug_sync='now WAIT_FOR s1';
set debug_sync='now SIGNAL go_update';

--echo # Connection con1:
connection con1;
--echo # reap: update t2 set f3 = repeat('[', 3000);
--reap

--echo # Connection default:
connection default;

--source include/kill_and_restart_mysqld.inc

select f1, length(f2), length(f3) from t2;
select f1, right(f2, 40), right(f3, 40) from t2;
check table t2;

# ..........................................................................

--echo #
--echo # Compressed Table - Update Operation
--echo # update that moves a non-updated column to BLOB
--echo #

set global innodb_compression_level = 0;

create table t3 (f1 bigint primary key, f2 longblob, f3 longblob,
  index(f2(10), f3(10))) engine=innodb row_format=compressed;

insert into t3 values (1, repeat('%', 7000), repeat('+', 30));
select f1, length(f2), length(f3) from t3;

--echo # Connection con2:
connect (con2,localhost,root,,);
set debug_sync='ib_mv_nonupdated_column_offpage SIGNAL s1 WAIT_FOR go_upd';

# The BLOB update will fail, and should disappear. However no data committed
# up to this point should be lost.
begin;
--send update t3 set f3 = repeat('[', 3000) where f1 = 1;

--echo # Connection default:
connection default;
set debug_sync='now WAIT_FOR s1';
set debug_sync='now SIGNAL go_upd';

--echo # Connection con2:
connection con2;
--echo # reap: update t3 set f3 = repeat('[', 3000) where f1 = 1;
--reap

--echo # Connection default:
connection default;

--source include/kill_and_restart_mysqld.inc

select f1, length(f2), length(f3) from t3;
select f1, right(f2, 30), right(f3, 20) from t3;
check table t3;

# Clean up.
DROP TABLE t2, t3;


Youez - 2016 - github.com/yon3zu
LinuXploit