mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
branches/innodb+: ibuf_get_volume_buffered(): Do not clear the
hash_bitmap a second time. Only clear it if n_recs has been set.
This commit is contained in:
parent
01339a767c
commit
fca2e168a3
1 changed files with 4 additions and 3 deletions
|
@ -2684,7 +2684,10 @@ ibuf_get_volume_buffered(
|
|||
pcur */
|
||||
|
||||
volume = 0;
|
||||
memset(hash_bitmap, 0, sizeof hash_bitmap);
|
||||
|
||||
if (n_recs) {
|
||||
memset(hash_bitmap, 0, sizeof hash_bitmap);
|
||||
}
|
||||
|
||||
rec = btr_pcur_get_rec(pcur);
|
||||
page = page_align(rec);
|
||||
|
@ -2767,8 +2770,6 @@ ibuf_get_volume_buffered(
|
|||
}
|
||||
|
||||
count_later:
|
||||
memset(hash_bitmap, 0, sizeof hash_bitmap);
|
||||
|
||||
rec = btr_pcur_get_rec(pcur);
|
||||
|
||||
if (!page_rec_is_supremum(rec)) {
|
||||
|
|
Loading…
Reference in a new issue