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
7e2c686b
Commit
7e2c686b
authored
Feb 21, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove partition-specific methods from the base handler class
parent
4ff08948
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
sql/ha_partition.h
sql/ha_partition.h
+1
-7
sql/handler.h
sql/handler.h
+0
-4
No files found.
sql/ha_partition.h
View file @
7e2c686b
...
@@ -1484,7 +1484,7 @@ class ha_partition :public handler
...
@@ -1484,7 +1484,7 @@ class ha_partition :public handler
return
h
;
return
h
;
}
}
virtual
ha_rows
part_records
(
void
*
_part_elem
)
ha_rows
part_records
(
void
*
_part_elem
)
{
{
partition_element
*
part_elem
=
reinterpret_cast
<
partition_element
*>
(
_part_elem
);
partition_element
*
part_elem
=
reinterpret_cast
<
partition_element
*>
(
_part_elem
);
DBUG_ASSERT
(
m_part_info
);
DBUG_ASSERT
(
m_part_info
);
...
@@ -1503,12 +1503,6 @@ class ha_partition :public handler
...
@@ -1503,12 +1503,6 @@ class ha_partition :public handler
return
part_recs
;
return
part_recs
;
}
}
virtual
handler
*
part_handler
(
uint32
part_id
)
{
DBUG_ASSERT
(
part_id
<
m_tot_parts
);
return
m_file
[
part_id
];
}
friend
int
cmp_key_rowid_part_id
(
void
*
ptr
,
uchar
*
ref1
,
uchar
*
ref2
);
friend
int
cmp_key_rowid_part_id
(
void
*
ptr
,
uchar
*
ref1
,
uchar
*
ref2
);
friend
int
cmp_key_part_id
(
void
*
key_p
,
uchar
*
ref1
,
uchar
*
ref2
);
friend
int
cmp_key_part_id
(
void
*
key_p
,
uchar
*
ref1
,
uchar
*
ref2
);
};
};
...
...
sql/handler.h
View file @
7e2c686b
...
@@ -4601,10 +4601,6 @@ class handler :public Sql_alloc
...
@@ -4601,10 +4601,6 @@ class handler :public Sql_alloc
bool
native_versioned
()
const
bool
native_versioned
()
const
{
DBUG_ASSERT
(
ht
);
return
partition_ht
()
->
flags
&
HTON_NATIVE_SYS_VERSIONING
;
}
{
DBUG_ASSERT
(
ht
);
return
partition_ht
()
->
flags
&
HTON_NATIVE_SYS_VERSIONING
;
}
virtual
ha_rows
part_records
(
void
*
_part_elem
)
{
DBUG_ASSERT
(
0
);
return
false
;
}
virtual
handler
*
part_handler
(
uint32
part_id
)
{
DBUG_ASSERT
(
0
);
return
NULL
;
}
virtual
void
update_partition
(
uint
part_id
)
virtual
void
update_partition
(
uint
part_id
)
{}
{}
protected:
protected:
...
...
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