MDEV-29319 Assertion failure size_in_header >= space.free_limit in...

MDEV-29319 Assertion failure size_in_header >= space.free_limit in fsp_get_available_space_in_free_extents()

- Don't remove the constant parameter in fsp_get_available_space_in_free_extents()
parent dd737d07
...@@ -14202,7 +14202,7 @@ been acquired by the caller who holds it for the calculation, ...@@ -14202,7 +14202,7 @@ been acquired by the caller who holds it for the calculation,
@param[in] space tablespace object from fil_space_acquire() @param[in] space tablespace object from fil_space_acquire()
@return available space in KiB */ @return available space in KiB */
static uintmax_t static uintmax_t
fsp_get_available_space_in_free_extents(fil_space_t& space) fsp_get_available_space_in_free_extents(const fil_space_t& space)
{ {
ulint size_in_header = space.size_in_header; ulint size_in_header = space.size_in_header;
if (size_in_header < FSP_EXTENT_SIZE) { if (size_in_header < FSP_EXTENT_SIZE) {
......
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