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
f13741c8
Commit
f13741c8
authored
Dec 22, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge hundin.mysql.fi:/my/mysql-3.23
into hundin.mysql.fi:/my/bk/mysql-4.0
parents
3eda53fb
0b393196
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
sql/ha_innobase.cc
sql/ha_innobase.cc
+2
-1
sql/ha_innobase.h
sql/ha_innobase.h
+6
-4
No files found.
sql/ha_innobase.cc
View file @
f13741c8
...
...
@@ -2961,7 +2961,8 @@ ha_innobase::records_in_range(
KEY
*
key
;
dict_index_t
*
index
;
mysql_byte
*
key_val_buff2
=
(
mysql_byte
*
)
my_malloc
(
table
->
reclength
,
table
->
reclength
+
table
->
max_key_length
+
100
,
MYF
(
MY_WME
));
dtuple_t
*
range_start
;
dtuple_t
*
range_end
;
...
...
sql/ha_innobase.h
View file @
f13741c8
...
...
@@ -96,10 +96,12 @@ class ha_innobase: public handler
uint
max_record_length
()
const
{
return
HA_MAX_REC_LENGTH
;
}
uint
max_keys
()
const
{
return
MAX_KEY
;
}
uint
max_key_parts
()
const
{
return
MAX_REF_PARTS
;
}
/* An InnoDB page must store >= 2 keys:
max key length is therefore set to 7000
bytes */
uint
max_key_length
()
const
{
return
7000
;
}
/* An InnoDB page must store >= 2 keys;
a secondary key record must also contain the
primary key value:
max key length is therefore set to slightly
less than 1 / 4 of page size which is 16 kB */
uint
max_key_length
()
const
{
return
3500
;
}
bool
fast_key_read
()
{
return
1
;}
key_map
keys_to_use_for_scanning
()
{
return
~
(
key_map
)
0
;
}
bool
has_transactions
()
{
return
1
;}
...
...
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