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
0d0f06da
Commit
0d0f06da
authored
Oct 08, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
ec42ccfd
28bdd6e6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
56 deletions
+40
-56
CMakeLists.txt
CMakeLists.txt
+7
-2
include/my_sys.h
include/my_sys.h
+0
-1
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+11
-2
mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test
mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test
+12
-3
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+1
-1
mysys/Makefile.am
mysys/Makefile.am
+1
-1
mysys/mf_strip.c
mysys/mf_strip.c
+0
-45
sql/mysql_priv.h.pp
sql/mysql_priv.h.pp
+0
-1
storage/mysql_storage_engine.cmake
storage/mysql_storage_engine.cmake
+8
-0
No files found.
CMakeLists.txt
View file @
0d0f06da
...
...
@@ -217,12 +217,16 @@ ENDIF(WITHOUT_DYNAMIC_PLUGINS)
FILE
(
GLOB STORAGE_SUBDIRS storage/*
)
FOREACH
(
SUBDIR
${
STORAGE_SUBDIRS
}
)
FILE
(
RELATIVE_PATH DIRNAME
${
PROJECT_SOURCE_DIR
}
/storage
${
SUBDIR
}
)
STRING
(
TOUPPER
${
DIRNAME
}
ENGINE
)
STRING
(
TOLOWER
${
DIRNAME
}
ENGINE_LOWER
)
IF
(
EXISTS
${
SUBDIR
}
/CMakeLists.txt
)
# Check MYSQL_STORAGE_ENGINE macro is present
FILE
(
STRINGS
${
SUBDIR
}
/CMakeLists.txt HAVE_STORAGE_ENGINE REGEX MYSQL_STORAGE_ENGINE
)
IF
(
HAVE_STORAGE_ENGINE
)
# Extract name of engine from HAVE_STORAGE_ENGINE
STRING
(
REGEX REPLACE
".*MYSQL_STORAGE_ENGINE
\\
((.*
\)\\
).*"
"
\\
1"
ENGINE_NAME
${
HAVE_STORAGE_ENGINE
}
)
STRING
(
TOUPPER
${
ENGINE_NAME
}
ENGINE
)
STRING
(
TOLOWER
${
ENGINE_NAME
}
ENGINE_LOWER
)
SET
(
ENGINE_BUILD_TYPE
"DYNAMIC"
)
# Read plug.in to find out if a plugin is mandatory and whether it supports
# build as shared library (dynamic).
...
...
@@ -248,6 +252,7 @@ FOREACH(SUBDIR ${STORAGE_SUBDIRS})
SET
(
MYSQLD_STATIC_ENGINE_LIBS
${
MYSQLD_STATIC_ENGINE_LIBS
}
${
ENGINE_LOWER
}
)
SET
(
STORAGE_ENGINE_DEFS
"
${
STORAGE_ENGINE_DEFS
}
-DWITH_
${
ENGINE
}
_STORAGE_ENGINE"
)
SET
(
WITH_
${
ENGINE
}
_STORAGE_ENGINE TRUE
)
SET
(
${
ENGINE
}
_DIR
${
DIRNAME
}
)
ENDIF
(
ENGINE_BUILD_TYPE STREQUAL
"STATIC"
)
ENDIF
(
EXISTS
${
SUBDIR
}
/plug.in
)
...
...
include/my_sys.h
View file @
0d0f06da
...
...
@@ -720,7 +720,6 @@ extern int wild_compare(const char *str,const char *wildstr,
extern
WF_PACK
*
wf_comp
(
char
*
str
);
extern
int
wf_test
(
struct
wild_file_pack
*
wf_pack
,
const
char
*
name
);
extern
void
wf_end
(
struct
wild_file_pack
*
buffer
);
extern
size_t
strip_sp
(
char
*
str
);
extern
my_bool
array_append_string_unique
(
const
char
*
str
,
const
char
**
array
,
size_t
size
);
extern
void
get_date
(
char
*
to
,
int
timeflag
,
time_t
use_time
);
...
...
libmysqld/CMakeLists.txt
View file @
0d0f06da
...
...
@@ -90,10 +90,11 @@ ENDFOREACH(rpath)
FOREACH
(
ENGINE_LIB
${
MYSQLD_STATIC_ENGINE_LIBS
}
)
INCLUDE
(
${
CMAKE_SOURCE_DIR
}
/storage/
${
ENGINE_LIB
}
/CMakeLists.txt
)
STRING
(
TOUPPER
${
ENGINE_LIB
}
ENGINE_LIB_UPPER
)
SET
(
ENGINE_DIR
${${
ENGINE_LIB_UPPER
}
_DIR
}
)
INCLUDE
(
${
CMAKE_SOURCE_DIR
}
/storage/
${
ENGINE_DIR
}
/CMakeLists.txt
)
FOREACH
(
rpath
${${
ENGINE_LIB_UPPER
}
_SOURCES
}
)
SET
(
LIB_SOURCES
${
LIB_SOURCES
}
${
CMAKE_SOURCE_DIR
}
/storage/
${
ENGINE_
LIB
}
/
${
rpath
}
)
SET
(
LIB_SOURCES
${
LIB_SOURCES
}
${
CMAKE_SOURCE_DIR
}
/storage/
${
ENGINE_
DIR
}
/
${
rpath
}
)
ENDFOREACH
(
rpath
)
ENDFOREACH
(
ENGINE_LIB
)
...
...
@@ -155,6 +156,14 @@ ADD_LIBRARY(mysqlserver STATIC ${LIBMYSQLD_SOURCES})
ADD_DEPENDENCIES
(
mysqlserver GenServerSource GenError
)
TARGET_LINK_LIBRARIES
(
mysqlserver
)
# Add any additional libraries requested by engine(s)
FOREACH
(
ENGINE_LIB
${
MYSQLD_STATIC_ENGINE_LIBS
}
)
STRING
(
TOUPPER
${
ENGINE_LIB
}
ENGINE_LIB_UPPER
)
IF
(
${
ENGINE_LIB_UPPER
}
_LIBS
)
TARGET_LINK_LIBRARIES
(
mysqlserver
${${
ENGINE_LIB_UPPER
}
_LIBS
}
)
ENDIF
(
${
ENGINE_LIB_UPPER
}
_LIBS
)
ENDFOREACH
(
ENGINE_LIB
)
ADD_LIBRARY
(
libmysqld SHARED cmake_dummy.c libmysqld.def
)
ADD_DEPENDENCIES
(
libmysqld mysqlserver
)
TARGET_LINK_LIBRARIES
(
libmysqld mysqlserver wsock32
)
mysql-test/suite/binlog/t/binlog_stm_unsafe_warning.test
View file @
0d0f06da
...
...
@@ -94,15 +94,24 @@ DROP TABLE t1;
SET
GLOBAL
log_warnings
=
@
old_log_warnings
;
let
LOG_ERROR
=
`SELECT @@GLOBAL.log_error`
;
let
$log_error_
=
`SELECT @@GLOBAL.log_error`
;
if
(
!
`select LENGTH('$log_error_')`
)
{
# MySQL Server on windows is started with --console and thus
# does not know the location of its .err log, use default location
let
$log_error_
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
;
}
# Assign env variable LOG_ERROR
let
LOG_ERROR
=
$log_error_
;
--
echo
# Count the number of times the "Unsafe" message was printed
--
echo
# to the error log.
perl
;
$log_error
=
$ENV
{
'LOG_ERROR'
};
use
strict
;
my
$log_error
=
$ENV
{
'LOG_ERROR'
}
or
die
"LOG_ERROR not set"
;
open
(
FILE
,
"
$log_error
"
)
or
die
(
"Unable to open
$log_error
: $!
\n
"
);
$count
=
()
=
grep
(
/
Bug
#46265/g,<FILE>);
my
$count
=
()
=
grep
(
/
Bug
#46265/g,<FILE>);
print
"Occurrences:
$count
\n
"
;
close
(
FILE
);
EOF
mysys/CMakeLists.txt
View file @
0d0f06da
...
...
@@ -29,7 +29,7 @@ SET(MYSYS_SOURCES array.c charset-def.c charset.c checksum.c default.c default_
errors.c hash.c list.c md5.c mf_brkhant.c mf_cache.c mf_dirname.c mf_fn_ext.c
mf_format.c mf_getdate.c mf_iocache.c mf_iocache2.c mf_keycache.c
mf_keycaches.c mf_loadpath.c mf_pack.c mf_path.c mf_qsort.c mf_qsort2.c
mf_radix.c mf_same.c mf_sort.c mf_soundex.c mf_
strip.c mf_
arr_appstr.c mf_tempdir.c
mf_radix.c mf_same.c mf_sort.c mf_soundex.c mf_arr_appstr.c mf_tempdir.c
mf_tempfile.c mf_unixpath.c mf_wcomp.c mf_wfile.c mulalloc.c my_access.c
my_aes.c my_alarm.c my_alloc.c my_append.c my_bit.c my_bitmap.c my_chsize.c
my_clock.c my_compress.c my_conio.c my_copy.c my_crc32.c my_create.c my_delete.c
...
...
mysys/Makefile.am
View file @
0d0f06da
...
...
@@ -35,7 +35,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
my_error.c errors.c my_div.c my_messnc.c
\
mf_format.c mf_same.c mf_dirname.c mf_fn_ext.c
\
my_symlink.c my_symlink2.c
\
mf_pack.c mf_unixpath.c mf_
strip.c mf_
arr_appstr.c
\
mf_pack.c mf_unixpath.c mf_arr_appstr.c
\
mf_wcomp.c mf_wfile.c my_gethwaddr.c
\
mf_qsort.c mf_qsort2.c mf_sort.c
\
ptr_cmp.c mf_radix.c queues.c my_getncpus.c
\
...
...
mysys/mf_strip.c
deleted
100644 → 0
View file @
ec42ccfd
/* Copyright (C) 2000 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* T|mmer en str{ng p{ slut_space */
#include "mysys_priv.h"
/*
strip_sp(char * str)
Strips end-space from string and returns new length.
*/
size_t
strip_sp
(
register
char
*
str
)
{
reg2
char
*
found
;
reg3
char
*
start
;
start
=
found
=
str
;
while
(
*
str
)
{
if
(
*
str
!=
' '
)
{
while
(
*++
str
&&
*
str
!=
' '
)
{};
if
(
!*
str
)
return
(
size_t
)
(
str
-
start
);
/* Return stringlength */
}
found
=
str
;
while
(
*++
str
==
' '
)
{};
}
*
found
=
'\0'
;
/* Stripp at first space */
return
(
size_t
)
(
found
-
start
);
}
/* strip_sp */
sql/mysql_priv.h.pp
View file @
0d0f06da
...
...
@@ -773,7 +773,6 @@ extern int wild_compare(const char *str,const char *wildstr,
extern
WF_PACK
*
wf_comp
(
char
*
str
);
extern
int
wf_test
(
struct
wild_file_pack
*
wf_pack
,
const
char
*
name
);
extern
void
wf_end
(
struct
wild_file_pack
*
buffer
);
extern
size_t
strip_sp
(
char
*
str
);
extern
my_bool
array_append_string_unique
(
const
char
*
str
,
const
char
**
array
,
size_t
size
);
extern
void
get_date
(
char
*
to
,
int
timeflag
,
time_t
use_time
);
...
...
storage/mysql_storage_engine.cmake
View file @
0d0f06da
...
...
@@ -7,6 +7,8 @@
# Remarks:
# ${engine}_SOURCES variable containing source files to produce the library must set before
# calling this macro
# ${engine}_LIBS variable containing extra libraries to link with may be set
MACRO
(
MYSQL_STORAGE_ENGINE engine
)
IF
(
NOT SOURCE_SUBLIBS
)
...
...
@@ -22,6 +24,9 @@ IF(NOT SOURCE_SUBLIBS)
#Create static library. The name of the library is <storage_engine>.lib
ADD_LIBRARY
(
${
libname
}
${${
engine
}
_SOURCES
}
)
ADD_DEPENDENCIES
(
${
libname
}
GenError
)
IF
(
${
engine
}
_LIBS
)
TARGET_LINK_LIBRARIES
(
${
libname
}
${${
engine
}
_LIBS
}
)
ENDIF
(
${
engine
}
_LIBS
)
MESSAGE
(
"build
${
engine
}
as static library"
)
ELSEIF
(
${
ENGINE_BUILD_TYPE
}
STREQUAL
"DYNAMIC"
)
ADD_DEFINITIONS
(
-DMYSQL_DYNAMIC_PLUGIN
)
...
...
@@ -30,6 +35,9 @@ IF(NOT SOURCE_SUBLIBS)
SET
(
dyn_libname ha_
${
libname
}
)
ADD_LIBRARY
(
${
dyn_libname
}
SHARED
${${
engine
}
_SOURCES
}
)
TARGET_LINK_LIBRARIES
(
${
dyn_libname
}
mysqld
)
IF
(
${
engine
}
_LIBS
)
TARGET_LINK_LIBRARIES
(
${
dyn_libname
}
${${
engine
}
_LIBS
}
)
ENDIF
(
${
engine
}
_LIBS
)
MESSAGE
(
"build
${
engine
}
as DLL"
)
ENDIF
(
${
ENGINE_BUILD_TYPE
}
STREQUAL
"STATIC"
)
ENDIF
(
NOT SOURCE_SUBLIBS
)
...
...
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