Skip to content

Commit e0ad9ea

Browse files
Bug #23590280 NO WARNING WHEN REDUCING INNODB_BUFFER_POOL_SIZE INSIZE
THE FIRST CHUNK PROBLEM It is a post-push problem. innodb_buffer_pool_size_validate() function was supposed to return updated buffer pool value to the caller function, but due to a check introduced by my fix, it returned before updating the buffer pool value. FIX Ensured that the proper updated value of buffer pool size returns to the caller function. Reviewed by: Aditya RB: 17812
1 parent 07f1691 commit e0ad9ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21223,17 +21223,17 @@ innodb_buffer_pool_size_validate(
2122321223
return(1);
2122421224
}
2122521225

21226+
ulint requested_buf_pool_size
21227+
= buf_pool_size_align(static_cast<ulint>(intbuf));
21228+
21229+
*static_cast<longlong*>(save) = requested_buf_pool_size;
21230+
2122621231
if (srv_buf_pool_size == static_cast<ulint>(intbuf)) {
2122721232
buf_pool_mutex_exit_all();
2122821233
/* nothing to do */
2122921234
return(0);
2123021235
}
2123121236

21232-
ulint requested_buf_pool_size
21233-
= buf_pool_size_align(static_cast<ulint>(intbuf));
21234-
21235-
*static_cast<longlong*>(save) = requested_buf_pool_size;
21236-
2123721237
if (srv_buf_pool_size == requested_buf_pool_size) {
2123821238
buf_pool_mutex_exit_all();
2123921239
push_warning_printf(thd, Sql_condition::SL_WARNING,

0 commit comments

Comments
 (0)