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
e3a69168
Commit
e3a69168
authored
Jul 14, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code: fil_create_directory_for_tablename()
parent
df1846ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+0
-31
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+0
-7
No files found.
storage/innobase/fil/fil0fil.cc
View file @
e3a69168
...
...
@@ -1920,37 +1920,6 @@ fil_space_acquire_for_io(ulint id)
return
(
space
);
}
/********************************************************//**
Creates the database directory for a table if it does not exist yet. */
void
fil_create_directory_for_tablename
(
/*===============================*/
const
char
*
name
)
/*!< in: name in the standard
'databasename/tablename' format */
{
const
char
*
namend
;
char
*
path
;
ulint
len
;
len
=
strlen
(
fil_path_to_mysql_datadir
);
namend
=
strchr
(
name
,
'/'
);
ut_a
(
namend
);
path
=
static_cast
<
char
*>
(
ut_malloc_nokey
(
len
+
ulint
(
namend
-
name
)
+
2
));
memcpy
(
path
,
fil_path_to_mysql_datadir
,
len
);
path
[
len
]
=
'/'
;
memcpy
(
path
+
len
+
1
,
name
,
ulint
(
namend
-
name
));
path
[
len
+
ulint
(
namend
-
name
)
+
1
]
=
0
;
os_normalize_path
(
path
);
bool
success
=
os_file_create_directory
(
path
,
false
);
ut_a
(
success
);
ut_free
(
path
);
}
/** Write a log record about an operation on a tablespace file.
@param[in] type MLOG_FILE_NAME or MLOG_FILE_DELETE
or MLOG_FILE_CREATE2 or MLOG_FILE_RENAME2
...
...
storage/innobase/include/fil0fil.h
View file @
e3a69168
...
...
@@ -1177,13 +1177,6 @@ fil_space_t*
fil_space_keyrotate_next
(
fil_space_t
*
prev_space
,
bool
remove
)
MY_ATTRIBUTE
((
warn_unused_result
));
/********************************************************//**
Creates the database directory for a table if it does not exist yet. */
void
fil_create_directory_for_tablename
(
/*===============================*/
const
char
*
name
);
/*!< in: name in the standard
'databasename/tablename' format */
/** Replay a file rename operation if possible.
@param[in] space_id tablespace identifier
@param[in] first_page_no first page number in the file
...
...
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