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
f06060f5
Commit
f06060f5
authored
Sep 06, 2024
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove the function dict_remove_db_name()
parent
024a18db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
24 deletions
+3
-24
storage/innobase/dict/dict0dict.cc
storage/innobase/dict/dict0dict.cc
+0
-15
storage/innobase/include/dict0dict.h
storage/innobase/include/dict0dict.h
+3
-9
No files found.
storage/innobase/dict/dict0dict.cc
View file @
f06060f5
...
...
@@ -185,21 +185,6 @@ dict_tables_have_same_db(
return
(
FALSE
);
}
/********************************************************************//**
Return the end of table name where we have removed dbname and '/'.
@return table name */
const
char
*
dict_remove_db_name
(
/*================*/
const
char
*
name
)
/*!< in: table name in the form
dbname '/' tablename */
{
const
char
*
s
=
strchr
(
name
,
'/'
);
ut_a
(
s
);
return
(
s
+
1
);
}
/** Open a persistent table.
@param[in] table_id persistent table identifier
@param[in] ignore_err errors to ignore
...
...
storage/innobase/include/dict0dict.h
View file @
f06060f5
...
...
@@ -101,15 +101,9 @@ dict_table_is_partition(const dict_table_t* table)
return
(
strstr
(
table
->
name
.
m_name
,
"#p#"
)
||
strstr
(
table
->
name
.
m_name
,
"#P#"
));
}
/********************************************************************//**
Return the end of table name where we have removed dbname and '/'.
@return table name */
const
char
*
dict_remove_db_name
(
/*================*/
const
char
*
name
)
/*!< in: table name in the form
dbname '/' tablename */
MY_ATTRIBUTE
((
nonnull
,
warn_unused_result
));
#define dict_remove_db_name(name) \
(table_name_t{const_cast<char*>(name)}.dbend() + 1)
/** Operation to perform when opening a table */
enum
dict_table_op_t
{
...
...
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