1. 18 Mar, 2024 1 commit
    • Dmitry Shulga's avatar
      MDEV-33525: Recreate/reuse temporary table · b620b394
      Dmitry Shulga authored
      Calling a stored function that uses a cursor inside its body
      could produce the error ER_NO_SUCH_TABLE on the second execution
      in case the cursor uses multi-table query and one of the tables
      is a temporary table just created before querying the cursor and
      dropped just after the query has been executed.
      
      The reason for issue is that re-parsing of failed a SP instruction
      caused be create/drop of the temporary table used LEX object
      left from previous parsing of a SP instruction's query instead
      re-initialize the lex object before parsing.
      
      To fix the issue, add initialization of lex for cursor's
      statement before re-parsing the query of a failed SP instruction.
      b620b394
  2. 07 Feb, 2024 1 commit
  3. 06 Feb, 2024 1 commit
  4. 03 Feb, 2024 1 commit
    • Nikita Malyavin's avatar
      MDEV-33348 ALTER TABLE lock waiting stages are indistinguishable · 5d37cac7
      Nikita Malyavin authored
      Several points of synchronization during ALTER TABLE COPY looked identical
      in the progress report query. Besides, if its the late lock upgrade stage,
      the data would be:
      STAGE   0
      MAX_STAGE       0
      PROGRESS        0.000
      
      which looks irrelevant.
      
      This patch moves thd_progress_deinit call after the last lock upgrade.
      
      Also, for online alter, if there is nothing to replicate, the
      progress and max_progress values would be 0, which discard the result data
      on the side of sql_show, see processlist_callback in sql_show.cc.
      So now the minimal max_progress will be 1. To avoid 0% progress in the
      report, minimax progress value is also set to 1, so we will see 100% if
      there's nothing to replicate.
      5d37cac7
  5. 02 Feb, 2024 2 commits
  6. 01 Feb, 2024 4 commits
  7. 31 Jan, 2024 9 commits
  8. 30 Jan, 2024 10 commits
  9. 27 Jan, 2024 3 commits
  10. 26 Jan, 2024 4 commits
    • Brandon Nesterenko's avatar
      MDEV-27850: rpl_seconds_behind_master_spike debug_sync fix · 112eb14f
      Brandon Nesterenko authored
      A debug_sync signal could remain for the SQL thread that should have begun
      a wait_for upon seeing a GTID event, but would instead see the old signal
      and continue on without waiting. This broke an "idle" condition in
      SHOW SLAVE STATUS
      which should have automatically negated Seconds_Behind_Master. Instead,
      because the SQL thread had already processed the GTID event, it set
      sql_thread_caught_up to false, and thereby calculated the value of
      Seconds_behind_master, when the test expected 0.
      
      This patch fixes this by resetting the debug_sync state before creating a
      new transaction which sends a GTID event to the replica
      112eb14f
    • Rucha Deodhar's avatar
      daca0c05
    • Vladislav Vaintroub's avatar
      update C/C · e96a0594
      Vladislav Vaintroub authored
      e96a0594
    • Marko Mäkelä's avatar
      MDEV-33317 [Warning] InnoDB: Could not free any blocks in the buffer pool! · 220c0fb4
      Marko Mäkelä authored
      Let us suppress this timing-sensitive warning globally.
      We added it in commit d34479dc (MDEV-33053)
      so that in case InnoDB hangs due to running out of buffer pool, there
      would be a warning about it. On a heavily loaded system that is running
      with a small buffer pool, these warnings may be occasionally issued
      while page writes are in progress.
      220c0fb4
  11. 25 Jan, 2024 4 commits
    • Vladislav Vaintroub's avatar
      MDEV-26579 fixup · b62f25c6
      Vladislav Vaintroub authored
      b62f25c6
    • Vladislav Vaintroub's avatar
      MDEV-26579 Support minor MSI in Windows installer. · 0f59810b
      Vladislav Vaintroub authored
      With this patch, 4-component MSI version can be used, e.g by setting
      TINY_VERSION variable in CMake, or by adding a string, e.g
      MYSQL_VERSION_EXTRA=-2
      which sets TINY_VERSION to 2, and also changes the package name.
      
      The 4-component MSI versions do not support MSI major upgrades, only minor
      ones, i.e do not reinstall components, just update existing ones based
      on versioning rules.
      
      To support these rules, add DefaultVersion for the files that won't
      otherwise be versioned - headers, static and import libraries,
      pdbs, text - xml, python and perl scripts Also silence WiX warning
      that MSI won't store hashes for those files anymore.
      0f59810b
    • Vladislav Vaintroub's avatar
      Remove bogus "perl not found" on Windows. · c9c4f15e
      Vladislav Vaintroub authored
      Testing exit code from popen(), comparing it with 1, and deciding that
      perl.exe is not there, is a) wrong conclusion, and b) uninteresting,
      because MTR always runs with perl, and with MTR_PERL set.
      
      Background:
      Recent change in 7af50e4d introduced
      exit code 1 from perl snippet, that broke Windows CI. Do not want
      to debug this ever again.
      c9c4f15e
    • Yuchen Pei's avatar
      MDEV-33191 spider: fix dbton_id when iterating over links · 1070575a
      Yuchen Pei authored
      There are two array fields in spider_share with similar names:
      
      share->use_sql_dbton_ids that maps from i to the i-th dbton used by
      share. Thus it should be used only when i iterates over all distinct
      dbtons used by share.
      
      share->sql_dbton_ids that maps from i to the dbton used by the i-th
      link of the share. Thus it should be used only when i iterates over
      all links of a share.
      
      We correct instances where share->sql_dbton_ids should be used instead
      of share->use_sql_dbton_ids.
      1070575a