403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.169
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/ndb_binlog/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_binlog/r/ndb_binlog_log_reads.result
create table test.t1 (
a int primary key,
b varchar(2000),
c int not null unique,
d int,
key(d)) engine=ndb;
insert into test.t1 values
(1, "Initial data 1", 1, 1),
(2, "Initial data 2", 2, 2),
(3, "Initial data 3", 3, 3),
(4, "Initial data 4", 4, 4),
(5, "Initial data 5", 5, 5),
(6, "Initial data 6", 6, 6),
(7, "Initial data 7", 7, 7),
(8, "Initial data 8", 8, 8),
(9, "Initial data 9", 9, 9),
(10, "Initial data 10", 10, 10);
Test 1: Testing logging of pk reads
reset master;
create table test.synch(x int primary key) engine=ndb;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
SET ndb_log_exclusive_reads= 1;
select * from test.t1 where a = 7 order by a for update;
a	b	c	d
7	Initial data 7	7	7
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld1:	txt
mysqld1:	### Extra row data format: 0, len: 4 :0x02000400
mysqld1:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld2:	txt
mysqld2:	### Extra row data format: 0, len: 4 :0x02000400
mysqld2:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld3:	txt
mysqld3:	### Extra row data format: 0, len: 4 :0x02000400
mysqld3:	### UPDATE `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld4:	txt
mysqld4:	### Extra row data format: 0, len: 4 :0x02000400
mysqld4:	### UPDATE `test`.`t1`
SET ndb_log_exclusive_reads= 0;
Test 2: Testing logging of unique index reads
reset master;
delete from test.synch;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
SET ndb_log_exclusive_reads= 1;
select * from test.t1 where c = 7 order by a for update;
a	b	c	d
7	Initial data 7	7	7
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld1:	txt
mysqld1:	### Extra row data format: 0, len: 4 :0x02000400
mysqld1:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld2:	txt
mysqld2:	### Extra row data format: 0, len: 4 :0x02000400
mysqld2:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld3:	txt
mysqld3:	### Extra row data format: 0, len: 4 :0x02000400
mysqld3:	### UPDATE `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld4:	txt
mysqld4:	### Extra row data format: 0, len: 4 :0x02000400
mysqld4:	### UPDATE `test`.`t1`
SET ndb_log_exclusive_reads= 0;
Test 3: Testing logging of ordered index scans
reset master;
delete from test.synch;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
SET ndb_log_exclusive_reads= 1;
select * from test.t1 where d = 7 order by a for update;
a	b	c	d
7	Initial data 7	7	7
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld1:	txt
mysqld1:	### Extra row data format: 0, len: 4 :0x02000400
mysqld1:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld2:	txt
mysqld2:	### Extra row data format: 0, len: 4 :0x02000400
mysqld2:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld3:	txt
mysqld3:	### Extra row data format: 0, len: 4 :0x02000400
mysqld3:	### UPDATE `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld4:	txt
mysqld4:	### Extra row data format: 0, len: 4 :0x02000400
mysqld4:	### UPDATE `test`.`t1`
SET ndb_log_exclusive_reads= 0;
Test 4: Testing logging of table scans
reset master;
delete from test.synch;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
show create table test.synch;
reset master;
SET ndb_log_exclusive_reads= 1;
select * from test.t1 where b like "Initial data 7" order by a for update;
a	b	c	d
7	Initial data 7	7	7
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld1:	txt
mysqld1:	### Extra row data format: 0, len: 4 :0x02000400
mysqld1:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a WRITE_ROW since ndb-log-update-as-write=1"
mysqld2:	txt
mysqld2:	### Extra row data format: 0, len: 4 :0x02000400
mysqld2:	### INSERT INTO `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld3:	txt
mysqld3:	### Extra row data format: 0, len: 4 :0x02000400
mysqld3:	### UPDATE `test`.`t1`
"Check that the binlog contains the AnyValue bit set in extra row data for a UPDATE_ROW since ndb-log-update-as-write=0"
mysqld4:	txt
mysqld4:	### Extra row data format: 0, len: 4 :0x02000400
mysqld4:	### UPDATE `test`.`t1`
SET ndb_log_exclusive_reads= 0;
drop table test.synch, test.t1;

Youez - 2016 - github.com/yon3zu
LinuXploit