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
79c4b4e4
Commit
79c4b4e4
authored
Jul 18, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge 5.3->5.5
parents
33e961c1
7e6bec87
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
12 deletions
+46
-12
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+22
-0
storage/maria/ha_maria.h
storage/maria/ha_maria.h
+1
-6
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+22
-0
storage/myisam/ha_myisam.h
storage/myisam/ha_myisam.h
+1
-6
No files found.
storage/maria/ha_maria.cc
View file @
79c4b4e4
...
...
@@ -1008,6 +1008,28 @@ const char *ha_maria::index_type(uint key_number)
}
ulong
ha_maria
::
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
{
ulong
flags
;
if
(
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_FULLTEXT
)
flags
=
0
;
else
if
((
table_share
->
key_info
[
inx
].
flags
&
HA_SPATIAL
||
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_RTREE
))
{
/* All GIS scans are non-ROR scans. We also disable IndexConditionPushdown */
flags
=
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_KEY_SCAN_NOT_ROR
;
}
else
{
flags
=
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_DO_INDEX_COND_PUSHDOWN
;
}
return
flags
;
}
double
ha_maria
::
scan_time
()
{
if
(
file
->
s
->
data_file_type
==
BLOCK_RECORD
)
...
...
storage/maria/ha_maria.h
View file @
79c4b4e4
...
...
@@ -65,12 +65,7 @@ class ha_maria :public handler
const
char
**
bas_ext
()
const
;
ulonglong
table_flags
()
const
{
return
int_table_flags
;
}
ulong
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
{
return
((
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_FULLTEXT
)
?
0
:
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_DO_INDEX_COND_PUSHDOWN
);
}
ulong
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
;
uint
max_supported_keys
()
const
{
return
MARIA_MAX_KEY
;
}
uint
max_supported_key_length
()
const
;
...
...
storage/myisam/ha_myisam.cc
View file @
79c4b4e4
...
...
@@ -689,6 +689,28 @@ const char *ha_myisam::index_type(uint key_number)
}
ulong
ha_myisam
::
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
{
ulong
flags
;
if
(
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_FULLTEXT
)
flags
=
0
;
else
if
((
table_share
->
key_info
[
inx
].
flags
&
HA_SPATIAL
||
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_RTREE
))
{
/* All GIS scans are non-ROR scans. We also disable IndexConditionPushdown */
flags
=
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_KEY_SCAN_NOT_ROR
;
}
else
{
flags
=
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_DO_INDEX_COND_PUSHDOWN
;
}
return
flags
;
}
/* Name is here without an extension */
int
ha_myisam
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
{
...
...
storage/myisam/ha_myisam.h
View file @
79c4b4e4
...
...
@@ -64,12 +64,7 @@ class ha_myisam: public handler
int
index_end
();
int
rnd_end
();
ulong
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
{
return
((
table_share
->
key_info
[
inx
].
algorithm
==
HA_KEY_ALG_FULLTEXT
)
?
0
:
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_RANGE
|
HA_READ_ORDER
|
HA_KEYREAD_ONLY
|
HA_DO_INDEX_COND_PUSHDOWN
);
}
ulong
index_flags
(
uint
inx
,
uint
part
,
bool
all_parts
)
const
;
uint
max_supported_keys
()
const
{
return
MI_MAX_KEY
;
}
uint
max_supported_key_parts
()
const
{
return
HA_MAX_KEY_SEG
;
}
uint
max_supported_key_length
()
const
{
return
HA_MAX_KEY_LENGTH
;
}
...
...
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