mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
buf_flush_batch(): Remove the test page_count != ULINT_UNDEFINED.
The variable is initialized to zero, and after that it is only added to. Maybe the one who introduced the variable srv_buf_pool_flushed overlooked that there is a separate return statement for returning ULINT_UNDEFINED?
This commit is contained in:
parent
2e91af5213
commit
bf27df53c0
1 changed files with 1 additions and 2 deletions
|
@ -977,8 +977,7 @@ buf_flush_batch(
|
|||
}
|
||||
#endif /* UNIV_DEBUG */
|
||||
|
||||
if (page_count != ULINT_UNDEFINED)
|
||||
srv_buf_pool_flushed+= page_count;
|
||||
srv_buf_pool_flushed += page_count;
|
||||
|
||||
return(page_count);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue