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
16c01c70
Commit
16c01c70
authored
Feb 19, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge: fix mroonga to compile and pass its tests
parent
da637137
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
14 deletions
+29
-14
storage/mroonga/CMakeLists.txt
storage/mroonga/CMakeLists.txt
+5
-0
storage/mroonga/ha_mroonga.cpp
storage/mroonga/ha_mroonga.cpp
+16
-6
storage/mroonga/ha_mroonga.hpp
storage/mroonga/ha_mroonga.hpp
+3
-3
storage/mroonga/mysql-test/mroonga/storage/r/alter_table_disable_keys_fulltext_table.result
.../storage/r/alter_table_disable_keys_fulltext_table.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/r/alter_table_enable_keys_fulltext_table.result
...a/storage/r/alter_table_enable_keys_fulltext_table.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/alter_table_disable_keys_fulltext_table.test
...ga/storage/t/alter_table_disable_keys_fulltext_table.test
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/alter_table_enable_keys_fulltext_table.test
...nga/storage/t/alter_table_enable_keys_fulltext_table.test
+1
-1
storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/normalizers/CMakeLists.txt
...ugins/groonga-normalizer-mysql/normalizers/CMakeLists.txt
+1
-1
No files found.
storage/mroonga/CMakeLists.txt
View file @
16c01c70
...
@@ -46,6 +46,11 @@ if(MRN_BUNDLED)
...
@@ -46,6 +46,11 @@ if(MRN_BUNDLED)
endif
()
endif
()
endif
()
endif
()
IF
(
HAVE_WVLA
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-Wno-vla"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-Wno-vla"
)
ENDIF
()
set
(
MRN_BUNDLED_GROONGA_RELATIVE_DIR
"vendor/groonga"
)
set
(
MRN_BUNDLED_GROONGA_RELATIVE_DIR
"vendor/groonga"
)
set
(
MRN_BUNDLED_GROONGA_DIR
set
(
MRN_BUNDLED_GROONGA_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
MRN_BUNDLED_GROONGA_RELATIVE_DIR
}
"
)
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
MRN_BUNDLED_GROONGA_RELATIVE_DIR
}
"
)
...
...
storage/mroonga/ha_mroonga.cpp
View file @
16c01c70
...
@@ -6467,24 +6467,34 @@ int ha_mroonga::delete_row(const uchar *buf)
...
@@ -6467,24 +6467,34 @@ int ha_mroonga::delete_row(const uchar *buf)
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
uint
ha_mroonga
::
wrapper_max_supported_key_parts
()
uint
ha_mroonga
::
wrapper_max_supported_key_parts
()
const
{
{
MRN_DBUG_ENTER_METHOD
();
MRN_DBUG_ENTER_METHOD
();
DBUG_RETURN
(
MAX_REF_PARTS
);
DBUG_RETURN
(
MAX_REF_PARTS
);
}
}
uint
ha_mroonga
::
storage_max_supported_key_parts
()
uint
ha_mroonga
::
storage_max_supported_key_parts
()
const
{
{
MRN_DBUG_ENTER_METHOD
();
MRN_DBUG_ENTER_METHOD
();
DBUG_RETURN
(
1
);
DBUG_RETURN
(
MAX_REF_PARTS
);
}
}
uint
ha_mroonga
::
max_supported_key_parts
()
uint
ha_mroonga
::
max_supported_key_parts
()
const
{
{
MRN_DBUG_ENTER_METHOD
();
MRN_DBUG_ENTER_METHOD
();
uint
parts
;
uint
parts
;
if
(
share
->
wrapper_mode
)
if
(
!
share
&&
!
analyzed_for_create
&&
{
(
thd_sql_command
(
ha_thd
())
==
SQLCOM_CREATE_TABLE
||
thd_sql_command
(
ha_thd
())
==
SQLCOM_CREATE_INDEX
||
thd_sql_command
(
ha_thd
())
==
SQLCOM_ALTER_TABLE
)
)
{
create_share_for_create
();
}
if
(
analyzed_for_create
&&
share_for_create
.
wrapper_mode
)
{
parts
=
wrapper_max_supported_key_parts
();
}
else
if
(
wrap_handler
&&
share
&&
share
->
wrapper_mode
)
{
parts
=
wrapper_max_supported_key_parts
();
parts
=
wrapper_max_supported_key_parts
();
}
else
{
}
else
{
parts
=
storage_max_supported_key_parts
();
parts
=
storage_max_supported_key_parts
();
...
...
storage/mroonga/ha_mroonga.hpp
View file @
16c01c70
...
@@ -348,7 +348,7 @@ public:
...
@@ -348,7 +348,7 @@ public:
uint
max_supported_record_length
()
const
;
uint
max_supported_record_length
()
const
;
uint
max_supported_keys
()
const
;
uint
max_supported_keys
()
const
;
uint
max_supported_key_parts
();
uint
max_supported_key_parts
()
const
;
uint
max_supported_key_length
()
const
;
uint
max_supported_key_length
()
const
;
uint
max_supported_key_part_length
()
const
;
uint
max_supported_key_part_length
()
const
;
...
@@ -812,8 +812,8 @@ private:
...
@@ -812,8 +812,8 @@ private:
uint
storage_max_supported_record_length
()
const
;
uint
storage_max_supported_record_length
()
const
;
uint
wrapper_max_supported_keys
()
const
;
uint
wrapper_max_supported_keys
()
const
;
uint
storage_max_supported_keys
()
const
;
uint
storage_max_supported_keys
()
const
;
uint
wrapper_max_supported_key_parts
();
uint
wrapper_max_supported_key_parts
()
const
;
uint
storage_max_supported_key_parts
();
uint
storage_max_supported_key_parts
()
const
;
uint
wrapper_max_supported_key_length
()
const
;
uint
wrapper_max_supported_key_length
()
const
;
uint
storage_max_supported_key_length
()
const
;
uint
storage_max_supported_key_length
()
const
;
uint
wrapper_max_supported_key_part_length
()
const
;
uint
wrapper_max_supported_key_part_length
()
const
;
...
...
storage/mroonga/mysql-test/mroonga/storage/r/alter_table_disable_keys_fulltext_table.result
View file @
16c01c70
...
@@ -24,4 +24,4 @@ column_create terms term COLUMN_SCALAR ShortText
...
@@ -24,4 +24,4 @@ column_create terms term COLUMN_SCALAR ShortText
table_create memos TABLE_PAT_KEY Int32
table_create memos TABLE_PAT_KEY Int32
column_create memos content COLUMN_SCALAR LongText
column_create memos content COLUMN_SCALAR LongText
column_create memos id COLUMN_SCALAR Int32
column_create memos id COLUMN_SCALAR Int32
DROP TABLE memos;
DROP TABLE memos
, terms
;
storage/mroonga/mysql-test/mroonga/storage/r/alter_table_enable_keys_fulltext_table.result
View file @
16c01c70
...
@@ -25,4 +25,4 @@ table_create memos TABLE_PAT_KEY Int32
...
@@ -25,4 +25,4 @@ table_create memos TABLE_PAT_KEY Int32
column_create memos content COLUMN_SCALAR LongText
column_create memos content COLUMN_SCALAR LongText
column_create memos id COLUMN_SCALAR Int32
column_create memos id COLUMN_SCALAR Int32
column_create terms content_index COLUMN_INDEX|WITH_POSITION memos content
column_create terms content_index COLUMN_INDEX|WITH_POSITION memos content
DROP TABLE memos;
DROP TABLE memos
, terms
;
storage/mroonga/mysql-test/mroonga/storage/t/alter_table_disable_keys_fulltext_table.test
View file @
16c01c70
...
@@ -39,7 +39,7 @@ SELECT mroonga_command("dump");
...
@@ -39,7 +39,7 @@ SELECT mroonga_command("dump");
ALTER
TABLE
memos
DISABLE
KEYS
;
ALTER
TABLE
memos
DISABLE
KEYS
;
SELECT
mroonga_command
(
"dump"
);
SELECT
mroonga_command
(
"dump"
);
DROP
TABLE
memos
;
DROP
TABLE
memos
,
terms
;
--
source
../../
include
/
mroonga
/
unload_mroonga_functions
.
inc
--
source
../../
include
/
mroonga
/
unload_mroonga_functions
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
storage/mroonga/mysql-test/mroonga/storage/t/alter_table_enable_keys_fulltext_table.test
View file @
16c01c70
...
@@ -40,7 +40,7 @@ SELECT mroonga_command("dump");
...
@@ -40,7 +40,7 @@ SELECT mroonga_command("dump");
ALTER
TABLE
memos
ENABLE
KEYS
;
ALTER
TABLE
memos
ENABLE
KEYS
;
SELECT
mroonga_command
(
"dump"
);
SELECT
mroonga_command
(
"dump"
);
DROP
TABLE
memos
;
DROP
TABLE
memos
,
terms
;
--
source
../../
include
/
mroonga
/
unload_mroonga_functions
.
inc
--
source
../../
include
/
mroonga
/
unload_mroonga_functions
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
--
source
../../
include
/
mroonga
/
have_mroonga_deinit
.
inc
storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql/normalizers/CMakeLists.txt
View file @
16c01c70
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
set
(
NORMALIZERS_DIR
"
${
GROONGA_PLUGINS_DIR
}
/normalizers"
)
set
(
NORMALIZERS_DIR
"
${
GROONGA_PLUGINS_DIR
}
/normalizers"
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_sources.am MYSQL_SOURCES
)
read_file_list
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_sources.am MYSQL_SOURCES
)
if
(
GROONGA_NORMALIZER_MYSQL_EMBED
)
if
(
GROONGA_NORMALIZER_MYSQL_EMBED
)
add_
library
(
mysql_normalizer STATIC
${
MYSQL_SOURCES
}
)
add_
convenience_library
(
mysql_normalizer
${
MYSQL_SOURCES
}
)
set_property
(
TARGET mysql_normalizer APPEND PROPERTY
set_property
(
TARGET mysql_normalizer APPEND PROPERTY
COMPILE_DEFINITIONS
"GROONGA_NORMALIZER_MYSQL_EMBED"
)
COMPILE_DEFINITIONS
"GROONGA_NORMALIZER_MYSQL_EMBED"
)
else
()
else
()
...
...
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