• Ingo Struewing's avatar
    Bug#41002 - symlink.test fails on symlinked datadir · 6673b284
    Ingo Struewing authored
    symlink.test failed when run in an environment that has mysql-test/var
    symlinked to elsewhere, e.g. a memory file system. This is the case
    when running mysql-test-run --mem.
    
    In this case the server does not detect that the directory specified
    with a DATA/INDEX DIRECTORY clause is within its data home directory.
    This problem was reported as Bug#39277 (Creation of table with data
    and/or index files in data home directory succeeds). It was decided
    that it will not be fixed in 5.1. Hence, the current behavior is
    accepted for 5.1. It will be fixed in 6.0 though.
    
    Fixed the test case so that it works in both environments. 1. When no
    symbolic link is involved, the server notices that the data/index
    directory is in its data hone directory and rejects the CREATE/ALTER
    TABLE statement. 2. When the data home directory is symlinked, it
    does not notice the problem and executes the statement sucessfully.
    6673b284
symlink.test 7.84 KB