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
54a892e1
Commit
54a892e1
authored
Mar 31, 2017
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes
parent
5210c69e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
storage/rocksdb/rdb_datadic.cc
storage/rocksdb/rdb_datadic.cc
+6
-4
No files found.
storage/rocksdb/rdb_datadic.cc
View file @
54a892e1
...
...
@@ -2831,8 +2831,10 @@ bool Rdb_validate_tbls::check_frm_file(const std::string &fullpath,
did in the future we would need to make a version that does it without
the connection handle as we don't have one here.
*/
enum
legacy_db_type
eng_type
;
frm_type_enum
type
=
dd_frm_type
(
nullptr
,
fullfilename
.
c_ptr
(),
&
eng_type
);
char
eng_type_buf
[
NAME_CHAR_LEN
+
1
];
LEX_STRING
eng_type_str
=
{
eng_type_buf
,
0
};
//enum legacy_db_type eng_type;
frm_type_enum
type
=
dd_frm_type
(
nullptr
,
fullfilename
.
c_ptr
(),
&
eng_type_str
);
if
(
type
==
FRMTYPE_ERROR
)
{
sql_print_warning
(
"RocksDB: Failed to open/read .from file: %s"
,
fullfilename
.
ptr
());
...
...
@@ -2841,7 +2843,7 @@ bool Rdb_validate_tbls::check_frm_file(const std::string &fullpath,
if
(
type
==
FRMTYPE_TABLE
)
{
/* For a RocksDB table do we have a reference in the data dictionary? */
if
(
eng_type
==
DB_TYPE_ROCKSDB
)
{
if
(
!
strncmp
(
eng_type_str
.
str
,
"ROCKSDB"
,
eng_type_str
.
length
)
)
{
/*
Attempt to remove the table entry from the list of tables. If this
fails then we know we had a .frm file that wasn't registered in RocksDB.
...
...
@@ -2854,7 +2856,7 @@ bool Rdb_validate_tbls::check_frm_file(const std::string &fullpath,
dbname
.
c_str
(),
tablename
.
c_str
());
*
has_errors
=
true
;
}
}
else
if
(
eng_type
==
DB_TYPE_PARTITION_DB
)
{
}
else
if
(
!
strncmp
(
eng_type_str
.
str
,
"partition"
,
eng_type_str
.
length
)
)
{
/*
For partition tables, see if it is in the m_list as a partition,
but don't generate an error if it isn't there - we don't know that the
...
...
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