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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e119799a
Commit
e119799a
authored
Feb 22, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation wih -DPLUGIN_PARTITION=NO
rocksdb and spider
parent
2daa0058
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
storage/rocksdb/ha_rocksdb.cc
storage/rocksdb/ha_rocksdb.cc
+2
-2
storage/rocksdb/rdb_datadic.cc
storage/rocksdb/rdb_datadic.cc
+1
-1
storage/spider/CMakeLists.txt
storage/spider/CMakeLists.txt
+2
-0
No files found.
storage/rocksdb/ha_rocksdb.cc
View file @
e119799a
...
...
@@ -6156,7 +6156,7 @@ int ha_rocksdb::create_cfs(
// Internal consistency check to make sure that data in TABLE and
// Rdb_tbl_def structures matches. Either both are missing or both are
// specified. Yes, this is critical enough to make it into SHIP_ASSERT.
SHIP_ASSERT
(
!
table_arg
->
part_info
==
tbl_def_arg
->
base_partition
().
empty
());
SHIP_ASSERT
(
IF_PARTITIONING
(
!
table_arg
->
part_info
,
true
)
==
tbl_def_arg
->
base_partition
().
empty
());
// Generate the name for the column family to use.
bool
per_part_match_found
=
false
;
...
...
@@ -8395,7 +8395,7 @@ const std::string ha_rocksdb::generate_cf_name(const uint index,
key_comment
,
table_arg
,
tbl_def_arg
,
per_part_match_found
,
RDB_CF_NAME_QUALIFIER
);
if
(
table_arg
->
part_info
!=
nullptr
&&
!*
per_part_match_found
)
{
if
(
IF_PARTITIONING
(
table_arg
->
part_info
,
nullptr
)
!=
nullptr
&&
!*
per_part_match_found
)
{
// At this point we tried to search for a custom CF name for a partition,
// but none was specified. Therefore default one will be used.
return
""
;
...
...
storage/rocksdb/rdb_datadic.cc
View file @
e119799a
...
...
@@ -538,7 +538,7 @@ const std::string Rdb_key_def::parse_comment_for_qualifier(
// NOTE: this means if you specify a qualifier for a specific partition it
// will take precedence the 'table level' qualifier if one exists.
std
::
string
search_str_part
;
if
(
table_arg
->
part_info
!=
nullptr
)
{
if
(
IF_PARTITIONING
(
table_arg
->
part_info
,
nullptr
)
!=
nullptr
)
{
std
::
string
partition_name
=
tbl_def_arg
->
base_partition
();
DBUG_ASSERT
(
!
partition_name
.
empty
());
search_str_part
=
gen_qualifier_for_table
(
qualifier
,
partition_name
);
...
...
storage/spider/CMakeLists.txt
View file @
e119799a
...
...
@@ -34,6 +34,8 @@ IF(EXISTS ${PROJECT_SOURCE_DIR}/storage/mysql_storage_engine.cmake)
${
CMAKE_SOURCE_DIR
}
/regex
)
MYSQL_STORAGE_ENGINE
(
SPIDER
)
ELSEIF
(
PLUGIN_PARTITION MATCHES
"^NO$"
)
MESSAGE
(
STATUS
"Spider is skipped because partitioning is disabled"
)
ELSE
()
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/storage/spider/hs_client
)
...
...
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