mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
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:
parent
64deac5563
commit
c39afbb9f1
1 changed files with 2 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue