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
5d3efeba
Commit
5d3efeba
authored
Feb 03, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
892cd369
24e7faa5
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
61 additions
and
20 deletions
+61
-20
client/CMakeLists.txt
client/CMakeLists.txt
+1
-1
cmake/libutils.cmake
cmake/libutils.cmake
+18
-7
cmake/os/SunOS.cmake
cmake/os/SunOS.cmake
+5
-0
cmake/plugin.cmake
cmake/plugin.cmake
+1
-0
cmake/readline.cmake
cmake/readline.cmake
+6
-4
mysys/my_gethwaddr.c
mysys/my_gethwaddr.c
+3
-3
sql/opt_subselect.h
sql/opt_subselect.h
+1
-1
sql/sql_join_cache.h
sql/sql_join_cache.h
+1
-1
sql/sql_select.h
sql/sql_select.h
+1
-1
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+12
-1
storage/innobase/plugin_exports
storage/innobase/plugin_exports
+11
-0
storage/xtradb/buf/buf0buf.c
storage/xtradb/buf/buf0buf.c
+1
-1
No files found.
client/CMakeLists.txt
View file @
5d3efeba
...
...
@@ -31,7 +31,7 @@ MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc
TARGET_LINK_LIBRARIES
(
mysql mysqlclient
)
IF
(
UNIX
)
TARGET_LINK_LIBRARIES
(
mysql
${
MY_READLINE_LIBRARY
}
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-rdynamic"
)
SET
_TARGET_PROPERTIES
(
mysql PROPERTIES ENABLE_EXPORTS TRUE
)
ENDIF
(
UNIX
)
MYSQL_ADD_EXECUTABLE
(
mysqltest mysqltest.cc COMPONENT Test
)
...
...
cmake/libutils.cmake
View file @
5d3efeba
...
...
@@ -305,16 +305,27 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result)
ENDFUNCTION
()
MACRO
(
RESTRICT_SYMBOL_EXPORTS target
)
SET
(
VISIBILITY_HIDDEN_FLAG
)
IF
(
CMAKE_COMPILER_IS_GNUCXX AND UNIX
)
CHECK_C_COMPILER_FLAG
(
"-fvisibility=hidden"
HAVE_VISIBILITY_HIDDEN
)
IF
(
HAVE_VISIBILITY_HIDDEN
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-fvisibility=hidden"
)
ENDIF
()
ENDIF
()
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
SET
(
VISIBILITY_HIDDEN_FLAG
"-xldscope=hidden"
)
ENDIF
()
IF
(
VISIBILITY_HIDDEN_FLAG
)
GET_TARGET_PROPERTY
(
COMPILE_FLAGS
${
target
}
COMPILE_FLAGS
)
IF
(
NOT COMPILE_FLAGS
)
# Avoid COMPILE_FLAGS-NOTFOUND
SET
(
COMPILE_FLAGS
)
ENDIF
()
SET_TARGET_PROPERTIES
(
${
target
}
PROPERTIES
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
-fvisibility=hidden"
)
ENDIF
()
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
${
VISIBILITY_HIDDEN_FLAG
}
"
)
ENDIF
()
ENDMACRO
()
cmake/os/SunOS.cmake
View file @
5d3efeba
...
...
@@ -93,3 +93,8 @@ IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_SIZEOF_VOID_P EQUAL 4
ENDIF
()
ENDIF
()
ENDIF
()
IF
(
CMAKE_CXX_COMPILER_ID MATCHES
"SunPro"
)
# Unnamed structs and unions
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-features=extensions"
)
ENDIF
()
cmake/plugin.cmake
View file @
5d3efeba
...
...
@@ -136,6 +136,7 @@ MACRO(MYSQL_ADD_PLUGIN)
SET_TARGET_PROPERTIES
(
${
target
}
PROPERTIES COMPILE_DEFINITONS
"MYSQL_SERVER"
)
DTRACE_INSTRUMENT
(
${
target
}
)
ADD_DEPENDENCIES
(
${
target
}
GenError
${
ARG_DEPENDENCIES
}
)
RESTRICT_SYMBOL_EXPORTS
(
${
target
}
)
IF
(
WITH_EMBEDDED_SERVER
)
# Embedded library should contain PIC code and be linkable
# to shared libraries (on systems that need PIC)
...
...
cmake/readline.cmake
View file @
5d3efeba
...
...
@@ -116,7 +116,6 @@ MACRO (MYSQL_USE_BUNDLED_READLINE)
SET
(
HAVE_HIST_ENTRY
)
SET
(
READLINE_INCLUDE_DIR
${
CMAKE_SOURCE_DIR
}
/cmd-line-utils
)
SET
(
READLINE_LIBRARY readline
)
FIND_CURSES
()
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/cmd-line-utils/readline
)
ENDMACRO
()
...
...
@@ -126,10 +125,10 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
FIND_LIBRARY
(
READLINE_LIBRARY NAMES readline
)
MARK_AS_ADVANCED
(
READLINE_INCLUDE_DIR READLINE_LIBRARY
)
SET
(
CMAKE_REQUIRES_LIBRARIES
${
READLINE_LIBRARY
}
)
SET
(
CMAKE_REQUIRES_LIBRARIES
${
READLINE_LIBRARY
}
${
CURSES_LIBRARY
}
)
IF
(
READLINE_LIBRARY AND READLINE_INCLUDE_DIR
)
SET
(
CMAKE_REQUIRED_LIBRARIES
${
READLINE_LIBRARY
}
)
SET
(
CMAKE_REQUIRED_LIBRARIES
${
READLINE_LIBRARY
}
${
CURSES_LIBRARY
}
)
CHECK_CXX_SOURCE_COMPILES
(
"
#include <stdio.h>
#include <readline/readline.h>
...
...
@@ -175,6 +174,7 @@ MACRO (MYSQL_FIND_SYSTEM_READLINE)
ENDIF
(
READLINE_V5
)
ENDIF
(
NEW_READLINE_INTERFACE
)
ENDIF
()
SET
(
CMAKE_REQUIRES_LIBRARIES
)
ENDMACRO
()
MACRO
(
MYSQL_FIND_SYSTEM_LIBEDIT
)
...
...
@@ -197,6 +197,7 @@ MACRO (MYSQL_FIND_SYSTEM_LIBEDIT)
LIBEDIT_INTERFACE
)
SET
(
USE_LIBEDIT_INTERFACE
${
LIBEDIT_INTERFACE
}
)
ENDIF
()
SET
(
CMAKE_REQUIRES_LIBRARIES
)
ENDMACRO
()
...
...
@@ -204,6 +205,7 @@ MACRO (MYSQL_CHECK_READLINE)
IF
(
NOT WIN32
)
MYSQL_CHECK_MULTIBYTE
()
SET
(
WITH_READLINE OFF CACHE BOOL
"Use bundled readline"
)
FIND_CURSES
()
IF
(
WITH_READLINE
)
MYSQL_USE_BUNDLED_READLINE
()
...
...
@@ -217,7 +219,7 @@ MACRO (MYSQL_CHECK_READLINE)
ENDIF
()
ENDIF
()
SET
(
MY_READLINE_INCLUDE_DIR
${
READLINE_INCLUDE_DIR
}
)
SET
(
MY_READLINE_LIBRARY
${
READLINE_LIBRARY
}
)
SET
(
MY_READLINE_LIBRARY
${
READLINE_LIBRARY
}
${
CURSES_LIBRARY
}
)
ENDIF
(
NOT WIN32
)
ENDMACRO
()
mysys/my_gethwaddr.c
View file @
5d3efeba
...
...
@@ -100,14 +100,14 @@ my_bool my_gethwaddr(uchar *to)
uint
i
;
for
(
i
=
0
;
res
&&
i
<
ifc
.
ifc_len
/
sizeof
(
ifr
[
0
]);
i
++
)
{
#ifdef
SIOCGIFHWADDR
#ifdef
__linux__
if
(
ioctl
(
fd
,
SIOCGIFHWADDR
,
&
ifr
[
i
])
>=
0
)
res
=
memcpy_and_test
(
to
,
(
uchar
*
)
&
ifr
[
i
].
ifr_hwaddr
.
sa_data
,
ETHER_ADDR_LEN
);
#else
/*
A bug in OpenSolaris
prevents
non-root from getting a mac address:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4720634
A bug in OpenSolaris
used to prevent
non-root from getting a mac address:
{no url. Oracle killed the old OpenSolaris bug database}
Thus, we'll use an alternative method and extract the address from the
arp table.
...
...
sql/opt_subselect.h
View file @
5d3efeba
...
...
@@ -279,7 +279,7 @@ public:
};
void
advance_sj_state
(
JOIN
*
join
,
const
table_map
remaining_tables
,
uint
idx
,
extern
void
advance_sj_state
(
JOIN
*
join
,
table_map
remaining_tables
,
uint
idx
,
double
*
current_record_count
,
double
*
current_read_time
,
POSITION
*
loose_scan_pos
);
void
restore_prev_sj_state
(
const
table_map
remaining_tables
,
...
...
sql/sql_join_cache.h
View file @
5d3efeba
...
...
@@ -550,7 +550,7 @@ public:
BNL_JOIN_ALG
,
/* Block Nested Loop Join algorithm */
BNLH_JOIN_ALG
,
/* Block Nested Loop Hash Join algorithm */
BKA_JOIN_ALG
,
/* Batched Key Access Join algorithm */
BKAH_JOIN_ALG
,
/* Batched Key Access with Hash Table Join Algorithm */
BKAH_JOIN_ALG
/* Batched Key Access with Hash Table Join Algorithm */
};
/*
...
...
sql/sql_select.h
View file @
5d3efeba
...
...
@@ -1688,7 +1688,7 @@ void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab,
double
*
outer_rec_count
,
double
*
reopt_cost
);
Item_equal
*
find_item_equal
(
COND_EQUAL
*
cond_equal
,
Field
*
field
,
bool
*
inherited_fl
);
bool
test_if_ref
(
COND
*
root_cond
,
extern
bool
test_if_ref
(
Item
*
,
Item_field
*
left_item
,
Item
*
right_item
);
inline
bool
optimizer_flag
(
THD
*
thd
,
uint
flag
)
...
...
storage/innobase/CMakeLists.txt
View file @
5d3efeba
...
...
@@ -252,7 +252,18 @@ IF(WITH_INNODB)
SET
(
WITH_INNOBASE_STORAGE_ENGINE TRUE
)
ENDIF
()
# On solaris, reduce symbol visibility, so loader does not mix
# the same symbols from builtin innodb and from shared one.
# Only required for old GCC (3.4.3) that does not support hidden visibility
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
AND CMAKE_COMPILER_IS_GNUCC
AND NOT HAVE_VISIBILITY_HIDDEN
)
SET
(
LINKER_SCRIPT
"-Wl,-M
${
CMAKE_CURRENT_SOURCE_DIR
}
/plugin_exports"
)
ELSE
()
SET
(
LINKER_SCRIPT
)
ENDIF
()
MYSQL_ADD_PLUGIN
(
innobase
${
INNOBASE_SOURCES
}
STORAGE_ENGINE
MODULE_ONLY
MODULE_OUTPUT_NAME ha_innodb
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
)
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
${
LINKER_SCRIPT
}
)
storage/innobase/plugin_exports
0 → 100644
View file @
5d3efeba
{
global:
_mysql_plugin_interface_version_;
_mysql_sizeof_struct_st_plugin_;
_mysql_plugin_declarations_;
thd_wait_service;
my_snprintf_service;
thd_alloc_service;
local:
*;
};
storage/xtradb/buf/buf0buf.c
View file @
5d3efeba
...
...
@@ -57,7 +57,7 @@ Created 11/5/1995 Heikki Tuuri
/* prototypes for new functions added to ha_innodb.cc */
trx_t
*
innobase_get_trx
();
inline
void
_increment_page_get_statistics
(
buf_block_t
*
block
,
trx_t
*
trx
)
static
inline
void
_increment_page_get_statistics
(
buf_block_t
*
block
,
trx_t
*
trx
)
{
ulint
block_hash
;
ulint
block_hash_byte
;
...
...
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