Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5069

persisted innodb_buffer_pool_size is an uninitialized variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 8.0.13-3
    • Component/s: None
    • Labels:
      None

      Description

      SET PERSIST innodb_buffer_pool_size= 1024;
      

      and restarting the server causes `innodb_buffer_pool_size` to be uninitialized.

      Valgrind shows:

      ==28138==    by 0x405946D: innodb_buffer_pool_size_update(THD*, SYS_VAR*, void*, void const*) (ha_innodb.cc:18643)
      ==28138==    by 0x2C1DE1E: sys_var_pluginvar::global_update(THD*, set_var*) (sql_plugin_var.cc:417)
      ==28138==    by 0x2AC97D6: sys_var::update(THD*, set_var*) (set_var.cc:252)
      ==28138==    by 0x2ACBEDE: set_var::update(THD*) (set_var.cc:1006)
      ==28138==    by 0x2ACB2FE: sql_set_variables(THD*, List<set_var_base>*, bool) (set_var.cc:771)
      ==28138==    by 0x2A8D33C: Persisted_variables_cache::set_persist_options(bool) (persisted_variable.cc:723)
      ==28138==    by 0x2A031EF: mysqld_main(int, char**) (mysqld.cc:6616)
      ==28138==    by 0x2823BE4: main (main.cc:30)
      

      I located the issue to `set_var.save_result` that is not set in `innodb_buffer_pool_size_validate(save)`.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  przemyslaw.skibinski Przemyslaw Skibinski
                  Reporter:
                  przemyslaw.skibinski Przemyslaw Skibinski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day
                    1d