ibuf_get_entry_counter_low(): Return 0 if no records have been buffered

on the page.  Because of a bug that was introduced in r2711, ULINT_UNDEFINED
was incorrectly returned.
This commit is contained in:
marko 2008-11-06 12:10:22 +00:00
parent 64deac5563
commit c39afbb9f1

View file

@ -2797,7 +2797,7 @@ ibuf_get_entry_counter_low(
if (mach_read_from_4(field) != space) {
return(ULINT_UNDEFINED);
return(0);
}
/* Check the page offset. */
@ -2806,7 +2806,7 @@ ibuf_get_entry_counter_low(
if (mach_read_from_4(field) != page_no) {
return(ULINT_UNDEFINED);
return(0);
}
/* Check if the record contains a counter field. */