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
ac2a265b
Commit
ac2a265b
authored
Aug 17, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc Impove ref length estimate in a handle to eliminate a warning in filesort
parent
fdb26b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
sql/ha_innobase.cc
sql/ha_innobase.cc
+10
-4
No files found.
sql/ha_innobase.cc
View file @
ac2a265b
...
...
@@ -821,10 +821,6 @@ ha_innobase::open(
DBUG_RETURN
(
1
);
}
/* MySQL allocates the buffer for ref */
ref_length
=
buff_len
;
/* Get pointer to a table object in InnoDB dictionary cache */
if
(
NULL
==
(
ib_table
=
dict_table_get
(
norm_name
,
NULL
)))
{
...
...
@@ -861,10 +857,20 @@ ha_innobase::open(
primary_key
=
0
;
key_used_on_scan
=
0
;
/* MySQL allocates the buffer for ref */
ref_length
=
table
->
key_info
->
key_length
+
table
->
key_info
->
key_parts
+
10
;
/* One byte per key field is consumed to the SQL NULL
info of the field; we add also 10 bytes of safety margin */
}
else
{
((
row_prebuilt_t
*
)
innobase_prebuilt
)
->
clust_index_was_generated
=
TRUE
;
ref_length
=
DATA_ROW_ID_LEN
+
10
;
dbug_assert
(
key_used_on_scan
==
MAX_KEY
);
}
...
...
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