maria:bb-10.6-mdev28749

Last commit made on 2022-06-06
Get this branch:
git clone -b bb-10.6-mdev28749 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.6-mdev28749
Repository:
lp:maria

Recent commits

161e8c5... by Sergey Petrunia

MDEV-28749: restore_prev_nj_state() doesn't update cur_sj_inner_tables correctly

Errors:
1. restore_prev_sj_state() assumed that
  "we assume remaining_tables doesnt contain @tab"
  which wasn't true.
2. Another bug in this function: it did remove bits from
   join->cur_sj_inner_tables but never added them.
3. greedy_search() adds tables into the join prefix but
   neglects to update the semi-join optimization state.
   It does update nested outer join state, see this call:

  check_interleaving_with_nj(best_table)

   but there's no matching call to update the semi-join state.
   (This wasn't visible because most of the state is in the POSITION
    structure which is updated. But there is also state in JOIN, too)

The patch:
- Fixes all of the above
- Adds JOIN::dbug_verify_sj_inner_tables() which is used to verify the
  state is correct at every step.
- Renamed advance_sj_state() to optimize_semi_joins().
  = Introduced update_sj_state() which ideally should be called
    "advance_sj_state" but I didn't reuse the name to avoid confusion.

2f8d0af... by Marko Mäkelä

Merge 10.5 into 10.6

22f935d... by Marko Mäkelä

MDEV-28731 Race condition on log checkpoint

mtr_t::modify(): Set the m_made_dirty flag if needed,
so that buf_pool_t::insert_into_flush_list() will be invoked
while holding log_sys.flush_order_mutex.

This is something that was should have been part of
commit b212f1dac284cc9b7a060f1eed2cd4604c326966 (MDEV-22107).

5909e0e... by Marko Mäkelä

Cleanup: btr_store_big_rec_extern_fields() does not really modify pcur

5294695... by Marko Mäkelä

Clean up mtr_t

mtr_t::is_empty(): Replaces mtr_t::get_log() and mtr_t::get_memo().

mtr_t::get_log_size(): Replaces mtr_t::get_log().

mtr_t::print(): Remove, unused function.

ReleaseBlocks::ReleaseBlocks(): Remove an unused parameter.

4b3c3e5... by Marko Mäkelä

Merge 10.4 into 10.5

96f4b4a... by Marko Mäkelä

Merge 10.3 into 10.4

91d5fff... by Marko Mäkelä

MDEV-28719: compress_write() leaks data_mutex on error

fde99e0... by Marko Mäkelä

MDEV-28716: Portability: unlink() can return EPERM instead of EISDIR

a616035... by Rucha Deodhar <email address hidden>

MDEV-25875: JSON_TABLE: extract document fragment into JSON column

Fixup