branches/innodb+: ibuf_get_volume_buffered(): Note that the volume

includes only buffered inserts, not delete-marks or deletes.
This is because ibuf_rec_get_volume() only returns nonzero for inserts.
This commit is contained in:
marko 2008-11-06 11:17:56 +00:00
parent d836a70547
commit 64deac5563

View file

@ -2527,8 +2527,8 @@ ibuf_contract_after_insert(
} }
/************************************************************************* /*************************************************************************
Gets an upper limit for the combined size of entries buffered in the insert Gets an upper limit for the combined size of inserts buffered for a
buffer for a given page. */ given page. */
static static
ulint ulint
ibuf_get_volume_buffered( ibuf_get_volume_buffered(
@ -2560,7 +2560,7 @@ ibuf_get_volume_buffered(
ut_ad((pcur->latch_mode == BTR_MODIFY_PREV) ut_ad((pcur->latch_mode == BTR_MODIFY_PREV)
|| (pcur->latch_mode == BTR_MODIFY_TREE)); || (pcur->latch_mode == BTR_MODIFY_TREE));
/* Count the volume of records earlier in the alphabetical order than /* Count the volume of inserts earlier in the alphabetical order than
pcur */ pcur */
volume = 0; volume = 0;