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
71e8043b
Commit
71e8043b
authored
Jan 28, 2011
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug #59465 btr_estimate_number_of_different_key_vals use incorrect offset
for external_size
rb://581
approved by Marko
parent
786ac62c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
storage/innobase/btr/btr0cur.c
storage/innobase/btr/btr0cur.c
+5
-5
storage/innodb_plugin/ChangeLog
storage/innodb_plugin/ChangeLog
+7
-0
storage/innodb_plugin/btr/btr0cur.c
storage/innodb_plugin/btr/btr0cur.c
+5
-5
No files found.
storage/innobase/btr/btr0cur.c
View file @
71e8043b
...
...
@@ -2981,6 +2981,9 @@ btr_estimate_number_of_different_key_vals(
while
(
!
page_rec_is_supremum
(
rec
))
{
rec_t
*
next_rec
=
page_rec_get_next
(
rec
);
if
(
page_rec_is_supremum
(
next_rec
))
{
total_external_size
+=
btr_rec_get_externally_stored_len
(
rec
,
offsets_rec
);
break
;
}
...
...
@@ -2988,7 +2991,8 @@ btr_estimate_number_of_different_key_vals(
matched_bytes
=
0
;
offsets_next_rec
=
rec_get_offsets
(
next_rec
,
index
,
offsets_next_rec
,
n_cols
,
&
heap
);
ULINT_UNDEFINED
,
&
heap
);
cmp_rec_rec_with_match
(
rec
,
next_rec
,
offsets_rec
,
offsets_next_rec
,
...
...
@@ -3043,10 +3047,6 @@ btr_estimate_number_of_different_key_vals(
}
}
offsets_rec
=
rec_get_offsets
(
rec
,
index
,
offsets_rec
,
ULINT_UNDEFINED
,
&
heap
);
total_external_size
+=
btr_rec_get_externally_stored_len
(
rec
,
offsets_rec
);
mtr_commit
(
&
mtr
);
}
...
...
storage/innodb_plugin/ChangeLog
View file @
71e8043b
2011-01-27 The InnoDB Team
* btr/btr0cur.c:
Bug#59465 btr_estimate_number_of_different_key_vals use
incorrect offset for external_size
2011-01-27 The InnoDB Team
* include/trx0trx.h, trx/trx0trx.c:
...
...
@@ -29,6 +35,7 @@
Fix Bug#59707 Unused compression-related parameters
in buffer pool functions
>>>>>>> MERGE-SOURCE
2011-01-18 The InnoDB Team
* include/sync0rw.h, sync/sync0arr.c, sync/sync0rw.c:
...
...
storage/innodb_plugin/btr/btr0cur.c
View file @
71e8043b
...
...
@@ -3365,6 +3365,9 @@ btr_estimate_number_of_different_key_vals(
while
(
!
page_rec_is_supremum
(
rec
))
{
rec_t
*
next_rec
=
page_rec_get_next
(
rec
);
if
(
page_rec_is_supremum
(
next_rec
))
{
total_external_size
+=
btr_rec_get_externally_stored_len
(
rec
,
offsets_rec
);
break
;
}
...
...
@@ -3372,7 +3375,8 @@ btr_estimate_number_of_different_key_vals(
matched_bytes
=
0
;
offsets_next_rec
=
rec_get_offsets
(
next_rec
,
index
,
offsets_next_rec
,
n_cols
,
&
heap
);
ULINT_UNDEFINED
,
&
heap
);
cmp_rec_rec_with_match
(
rec
,
next_rec
,
offsets_rec
,
offsets_next_rec
,
...
...
@@ -3427,10 +3431,6 @@ btr_estimate_number_of_different_key_vals(
}
}
offsets_rec
=
rec_get_offsets
(
rec
,
index
,
offsets_rec
,
ULINT_UNDEFINED
,
&
heap
);
total_external_size
+=
btr_rec_get_externally_stored_len
(
rec
,
offsets_rec
);
mtr_commit
(
&
mtr
);
}
...
...
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