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
828be0d9
Commit
828be0d9
authored
Sep 25, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TokuuDB: add handlerton::discover_table_existence() method
parent
20031c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+11
-1
No files found.
storage/tokudb/hatoku_hton.cc
View file @
828be0d9
...
...
@@ -331,7 +331,8 @@ static int tokudb_rollback_to_savepoint(handlerton * hton, THD * thd, void *save
static
int
tokudb_savepoint
(
handlerton
*
hton
,
THD
*
thd
,
void
*
savepoint
);
static
int
tokudb_release_savepoint
(
handlerton
*
hton
,
THD
*
thd
,
void
*
savepoint
);
static
int
tokudb_discover_table
(
handlerton
*
hton
,
THD
*
thd
,
TABLE_SHARE
*
ts
);
static
int
tokudb_discover
(
handlerton
*
hton
,
THD
*
thd
,
const
char
*
db
,
const
char
*
name
,
uchar
**
frmblob
,
size_t
*
frmlen
)
__attribute__
((
__unused__
));
static
int
tokudb_discover_table_existence
(
handlerton
*
hton
,
const
char
*
db
,
const
char
*
name
);
static
int
tokudb_discover
(
handlerton
*
hton
,
THD
*
thd
,
const
char
*
db
,
const
char
*
name
,
uchar
**
frmblob
,
size_t
*
frmlen
);
static
int
tokudb_discover2
(
handlerton
*
hton
,
THD
*
thd
,
const
char
*
db
,
const
char
*
name
,
bool
translate_name
,
uchar
**
frmblob
,
size_t
*
frmlen
);
static
int
tokudb_discover3
(
handlerton
*
hton
,
THD
*
thd
,
const
char
*
db
,
const
char
*
name
,
char
*
path
,
uchar
**
frmblob
,
size_t
*
frmlen
);
handlerton
*
tokudb_hton
;
...
...
@@ -498,6 +499,7 @@ static int tokudb_init_func(void *p) {
tokudb_hton
->
savepoint_release
=
tokudb_release_savepoint
;
tokudb_hton
->
discover_table
=
tokudb_discover_table
;
tokudb_hton
->
discover_table_existence
=
tokudb_discover_table_existence
;
#if defined(MYSQL_HANDLERTON_INCLUDE_DISCOVER2)
tokudb_hton
->
discover2
=
tokudb_discover2
;
#endif
...
...
@@ -1158,6 +1160,14 @@ static int tokudb_discover_table(handlerton *hton, THD* thd, TABLE_SHARE *ts) {
return
res
==
ENOENT
?
HA_ERR_NO_SUCH_TABLE
:
res
;
}
static
int
tokudb_discover_table_existence
(
handlerton
*
hton
,
const
char
*
db
,
const
char
*
name
)
{
uchar
*
frmblob
=
0
;
size_t
frmlen
;
int
res
=
tokudb_discover
(
hton
,
current_thd
,
db
,
name
,
&
frmblob
,
&
frmlen
);
my_free
(
frmblob
);
return
res
!=
ENOENT
;
}
static
int
tokudb_discover
(
handlerton
*
hton
,
THD
*
thd
,
const
char
*
db
,
const
char
*
name
,
uchar
**
frmblob
,
size_t
*
frmlen
)
{
return
tokudb_discover2
(
hton
,
thd
,
db
,
name
,
true
,
frmblob
,
frmlen
);
}
...
...
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