1. 12 Sep, 2024 3 commits
    • Marko Mäkelä's avatar
      MDEV-34879 InnoDB fails to merge the change buffer to ROW_FORMAT=COMPRESSED tables · a74bea7b
      Marko Mäkelä authored
      buf_page_t::read_complete(): Fix an incorrect condition that had been
      added in commit aaef2e1d (MDEV-27058).
      Also for compressed-only pages we must remember that buffered changes
      may exist.
      
      buf_read_page(): Correct the function comment; this is for a synchronous
      and not asynchronous read. Pass the parameter unzip=true to
      buf_read_page_low(), because each of our callers will be interested in
      the uncompressed page frame. This will cause the test
      encryption.innodb-compressed-blob to emit more errors when the
      correct keys for decrypting the clustered index root page are unavailable.
      
      Reviewed by: Debarun Banerjee
      a74bea7b
    • Marko Mäkelä's avatar
      MDEV-34791 fixup: Avoid an infinite loop with ROW_FORMAT=COMPRESSED · f168050e
      Marko Mäkelä authored
      buf_pool_t::page_fix(): If a change buffer merge may be needed on a
      ROW_FORMAT=COMPRESSED page that exists in compressed-only format in
      the buffer pool, go ahead to decompress the block. This fixes an
      infinite loop.
      
      Reviewed by: Debarun Banerjee
      f168050e
    • Yuchen Pei's avatar
      Merge branch '10.5' into 10.6 · 09b1269e
      Yuchen Pei authored
      09b1269e
  2. 11 Sep, 2024 5 commits
  3. 10 Sep, 2024 28 commits
  4. 09 Sep, 2024 1 commit
  5. 08 Sep, 2024 1 commit
    • Sergei Petrunia's avatar
      MDEV-34894: Poor query plan, because range estimates are not reused for ref(const) · c630e23a
      Sergei Petrunia authored
      (Variant 4, with @@optimizer_adjust_secondary_key_costs, reuse in two
      places, and conditions are replaced with equivalent simpler forms in two more)
      
      In best_access_path(), ReuseRangeEstimateForRef-3,  the check
      for whether
       "all used key_part_i used key_part_i=const"
      was incorrect: it may produced a "NO" answer for cases when we
      had:
       key_part1= const // some key parts are usable
       key_part2= value_not_in_join_prefix  //present but unusable
       key_part3= non_const_value // unusable due to gap in key parts.
      
      This caused the optimizer to fail to apply ReuseRangeEstimateForRef
      heuristics. The consequence is poor query plan choice when the index
      in question has very skewed data distribution.
      
      The fix is enabled if its @@optimizer_adjust_secondary_key_costs flag
      is set.
      c630e23a
  6. 07 Sep, 2024 2 commits