Commit c39afbb9 authored by marko's avatar marko

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.
parent 64deac55
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment