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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2ef0312c
Commit
2ef0312c
authored
Nov 26, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oqgraph cleanup: remove casts
parent
2ae7541b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+4
-6
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
2ef0312c
...
...
@@ -126,7 +126,8 @@ const char *oqlatchToCode(int latch) {
return
"unknown"
;
}
struct
oqgraph_table_option_struct
struct
ha_table_option_struct
{
const
char
*
table_name
;
...
...
@@ -135,7 +136,6 @@ struct oqgraph_table_option_struct
const
char
*
weight
;
// name of the weight column (optional)
};
#define ha_table_option_struct oqgraph_table_option_struct
static
const
ha_create_table_option
oqgraph_table_option_list
[]
=
{
HA_TOPTION_STRING
(
"data_table"
,
table_name
),
...
...
@@ -511,8 +511,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
DBUG_ASSERT
(
graph
==
NULL
);
THD
*
thd
=
current_thd
;
oqgraph_table_option_struct
*
options
=
reinterpret_cast
<
oqgraph_table_option_struct
*>
(
table
->
s
->
option_struct
);
ha_table_option_struct
*
options
=
table
->
s
->
option_struct
;
// Catch cases where table was not constructed properly
// Note - need to return -1 so our error text gets reported
...
...
@@ -1268,8 +1267,7 @@ ha_rows ha_oqgraph::records_in_range(uint inx, key_range *min_key,
int
ha_oqgraph
::
create
(
const
char
*
name
,
TABLE
*
table_arg
,
HA_CREATE_INFO
*
create_info
)
{
oqgraph_table_option_struct
*
options
=
reinterpret_cast
<
oqgraph_table_option_struct
*>
(
table_arg
->
s
->
option_struct
);
ha_table_option_struct
*
options
=
table_arg
->
s
->
option_struct
;
DBUG_ENTER
(
"ha_oqgraph::create"
);
DBUG_PRINT
(
"oq-debug"
,
(
"create(name=%s)"
,
name
));
...
...
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