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
b4e994d7
Commit
b4e994d7
authored
Aug 18, 2013
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
4eddb2c2
c06eaf21
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
5 deletions
+15
-5
CMakeLists.txt
CMakeLists.txt
+3
-1
config.h.cmake
config.h.cmake
+1
-0
include/my_global.h
include/my_global.h
+7
-0
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
mysys/mf_tempdir.c
mysys/mf_tempdir.c
+1
-1
mysys/mf_tempfile.c
mysys/mf_tempfile.c
+1
-1
mysys/my_getsystime.c
mysys/my_getsystime.c
+1
-1
No files found.
CMakeLists.txt
View file @
b4e994d7
...
...
@@ -245,7 +245,9 @@ SET(PLUGINDIR "${DEFAULT_MYSQL_HOME}/${INSTALL_PLUGINDIR}")
IF
(
INSTALL_SYSCONFDIR
)
SET
(
DEFAULT_SYSCONFDIR
"
${
INSTALL_SYSCONFDIR
}
"
)
ENDIF
()
IF
(
TMPDIR
)
SET
(
DEFAULT_TMPDIR
"
${
TMPDIR
}
"
)
ENDIF
()
# Run platform tests
INCLUDE
(
configure.cmake
)
...
...
config.h.cmake
View file @
b4e994d7
...
...
@@ -619,6 +619,7 @@
#cmakedefine DEFAULT_CHARSET_HOME "@DEFAULT_CHARSET_HOME@"
#cmakedefine PLUGINDIR "@PLUGINDIR@"
#cmakedefine DEFAULT_SYSCONFDIR "@DEFAULT_SYSCONFDIR@"
#cmakedefine DEFAULT_TMPDIR "@DEFAULT_TMPDIR@"
#cmakedefine SO_EXT "@CMAKE_SHARED_MODULE_SUFFIX@"
...
...
include/my_global.h
View file @
b4e994d7
...
...
@@ -1515,4 +1515,11 @@ static inline double rint(double x)
#endif
/* EMBEDDED_LIBRARY */
/*
Define default tmpdir if not already set.
*/
#if !defined(DEFAULT_TMPDIR)
#define DEFAULT_TMPDIR P_tmpdir
#endif
#endif
/* my_global_h */
libmysqld/lib_sql.cc
View file @
b4e994d7
...
...
@@ -559,7 +559,7 @@ int init_embedded_server(int argc, char **argv, char **groups)
opt_mysql_tmpdir
=
getenv
(
"TMP"
);
#endif
if
(
!
opt_mysql_tmpdir
||
!
opt_mysql_tmpdir
[
0
])
opt_mysql_tmpdir
=
(
char
*
)
P_tmpdir
;
/* purecov: inspected */
opt_mysql_tmpdir
=
(
char
*
)
DEFAULT_TMPDIR
;
/* purecov: inspected */
init_ssl
();
umask
(((
~
my_umask
)
&
0666
));
...
...
mysys/mf_tempdir.c
View file @
b4e994d7
...
...
@@ -43,7 +43,7 @@ my_bool init_tmpdir(MY_TMPDIR *tmpdir, const char *pathlist)
pathlist
=
getenv
(
"TMP"
);
#endif
if
(
!
pathlist
||
!
pathlist
[
0
])
pathlist
=
(
char
*
)
P_tmpdir
;
pathlist
=
(
char
*
)
DEFAULT_TMPDIR
;
}
do
{
...
...
mysys/mf_tempfile.c
View file @
b4e994d7
...
...
@@ -111,7 +111,7 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
sizeof
(
prefix_buff
)
-
7
),
"XXXXXX"
)
-
prefix_buff
);
if
(
!
dir
&&
!
(
dir
=
getenv
(
"TMPDIR"
)))
dir
=
P_tmpdir
;
dir
=
DEFAULT_TMPDIR
;
if
(
strlen
(
dir
)
+
pfx_len
>
FN_REFLEN
-
2
)
{
errno
=
my_errno
=
ENAMETOOLONG
;
...
...
mysys/my_getsystime.c
View file @
b4e994d7
...
...
@@ -113,7 +113,7 @@ void my_time_init()
/*
Return cpu time in
milliseconds * 10
Return cpu time in
1/10th on a microsecond (1e-7 s)
*/
ulonglong
my_getcputime
()
...
...
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