Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9df04058
Commit
9df04058
authored
Mar 03, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-8707
into mysql.com:/home/jimw/my/mysql-4.1-clean
parents
fe065fe7
3ecabaa9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
mysql-test/r/symlink.result
mysql-test/r/symlink.result
+14
-0
mysql-test/t/symlink.test
mysql-test/t/symlink.test
+11
-0
mysys/my_symlink2.c
mysys/my_symlink2.c
+6
-1
No files found.
mysql-test/r/symlink.result
View file @
9df04058
...
@@ -84,3 +84,17 @@ t1 CREATE TABLE `t1` (
...
@@ -84,3 +84,17 @@ t1 CREATE TABLE `t1` (
`b` int(11) default NULL
`b` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
drop table t1;
create table t1 (i int) data directory = "/home/jimw/my/mysql-4.1-8707/mysql-test/var/master-data/test/";
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
create table t1 (i int) index directory = "/home/jimw/my/mysql-4.1-8707/mysql-test/var/master-data/test/";
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
mysql-test/t/symlink.test
View file @
9df04058
...
@@ -115,3 +115,14 @@ eval alter table t1 index directory="$MYSQL_TEST_DIR/var/log";
...
@@ -115,3 +115,14 @@ eval alter table t1 index directory="$MYSQL_TEST_DIR/var/log";
enable_query_log
;
enable_query_log
;
show
create
table
t1
;
show
create
table
t1
;
drop
table
t1
;
drop
table
t1
;
#
# Test specifying DATA DIRECTORY that is the same as what would normally
# have been chosen. (Bug #8707)
#
eval
create
table
t1
(
i
int
)
data
directory
=
"
$MYSQL_TEST_DIR
/var/master-data/test/"
;
show
create
table
t1
;
drop
table
t1
;
eval
create
table
t1
(
i
int
)
index
directory
=
"
$MYSQL_TEST_DIR
/var/master-data/test/"
;
show
create
table
t1
;
drop
table
t1
;
mysys/my_symlink2.c
View file @
9df04058
...
@@ -32,6 +32,7 @@ File my_create_with_symlink(const char *linkname, const char *filename,
...
@@ -32,6 +32,7 @@ File my_create_with_symlink(const char *linkname, const char *filename,
int
tmp_errno
;
int
tmp_errno
;
/* Test if we should create a link */
/* Test if we should create a link */
int
create_link
;
int
create_link
;
char
abs_linkname
[
FN_REFLEN
];
DBUG_ENTER
(
"my_create_with_symlink"
);
DBUG_ENTER
(
"my_create_with_symlink"
);
if
(
my_disable_symlinks
)
if
(
my_disable_symlinks
)
...
@@ -42,7 +43,11 @@ File my_create_with_symlink(const char *linkname, const char *filename,
...
@@ -42,7 +43,11 @@ File my_create_with_symlink(const char *linkname, const char *filename,
filename
=
linkname
;
filename
=
linkname
;
}
}
else
else
create_link
=
(
linkname
&&
strcmp
(
linkname
,
filename
));
{
if
(
linkname
)
my_realpath
(
&
abs_linkname
,
linkname
,
MYF
(
0
));
create_link
=
(
linkname
&&
strcmp
(
abs_linkname
,
filename
));
}
if
(
!
(
MyFlags
&
MY_DELETE_OLD
))
if
(
!
(
MyFlags
&
MY_DELETE_OLD
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment