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:
marko 2008-11-20 08:48:55 +00:00
parent 01339a767c
commit fca2e168a3

View file

@ -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)) {