<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mariadb-git.git/sql/sql_base.cc, branch bb-10.2-mdev9750</title>
<subtitle>github.com: MariaDB/server.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/'/>
<entry>
<title>MDEV-22707 : galera got stuck after flush tables</title>
<updated>2020-10-28T12:00:37+00:00</updated>
<author>
<name>Jan Lindström</name>
<email>jan.lindstrom@mariadb.com</email>
</author>
<published>2020-10-28T12:00:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=d5c9f84dfc72787c94ca773f83cceee9d93b2014'/>
<id>d5c9f84dfc72787c94ca773f83cceee9d93b2014</id>
<content type='text'>
Remove unnecessary condition and add necessary include
for non debug Galera library.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove unnecessary condition and add necessary include
for non debug Galera library.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-22707: galera got stuck after flush tables</title>
<updated>2020-10-27T09:28:45+00:00</updated>
<author>
<name>mkaruza</name>
<email>mario.karuza@galeracluster.com</email>
</author>
<published>2020-10-21T07:48:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=6a614d6934a85e8228957fe1d7242928a00dc5ff'/>
<id>6a614d6934a85e8228957fe1d7242928a00dc5ff</id>
<content type='text'>
Deadlock is possible between applier thread and local committing thread with active FLUSH TABLE.
Applier thread should skip table share checks and locks when opening table.

Reviewed-by: Jan Lindström &lt;jan.lindstrom@mariadb.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deadlock is possible between applier thread and local committing thread with active FLUSH TABLE.
Applier thread should skip table share checks and locks when opening table.

Reviewed-by: Jan Lindström &lt;jan.lindstrom@mariadb.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '10.1' into 10.2</title>
<updated>2020-08-02T09:05:29+00:00</updated>
<author>
<name>Oleksandr Byelkin</name>
<email>sanja@mariadb.com</email>
</author>
<published>2020-08-02T09:05:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=ef7cb0a0b5108b74c23bf6190f7df2cbfe2996a6'/>
<id>ef7cb0a0b5108b74c23bf6190f7df2cbfe2996a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cleanup: reduce code duplication</title>
<updated>2020-07-29T12:56:24+00:00</updated>
<author>
<name>Sergei Golubchik</name>
<email>serg@mariadb.org</email>
</author>
<published>2020-07-29T10:05:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=2ba70f69fd6cb3508de2744191c200c11d2fcd5f'/>
<id>2ba70f69fd6cb3508de2744191c200c11d2fcd5f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-18496 Crash when Aria encryption is enabled but plugin not available</title>
<updated>2020-07-29T12:56:24+00:00</updated>
<author>
<name>Sergei Golubchik</name>
<email>serg@mariadb.org</email>
</author>
<published>2020-05-17T16:34:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=88cbe2f08193054ccf6565c2b27a8d809285a45b'/>
<id>88cbe2f08193054ccf6565c2b27a8d809285a45b</id>
<content type='text'>
wait_while_table_is_used() should return an error if handler::extra() fails
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
wait_while_table_is_used() should return an error if handler::extra() fails
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-16039 Crash when selecting virtual columns generated using functions with DAYNAME()</title>
<updated>2020-07-21T06:18:00+00:00</updated>
<author>
<name>Nikita Malyavin</name>
<email>nikitamalyavin@gmail.com</email>
</author>
<published>2019-09-03T18:29:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=5acd391e8b2d4d760ae7f96a59413c9ea247e9b1'/>
<id>5acd391e8b2d4d760ae7f96a59413c9ea247e9b1</id>
<content type='text'>
* Allocate items on thd-&gt;mem_root while refixing vcol exprs
* Make vcol tree changes register and roll them back after the statement is executed.

Explanation:
Due to collation implementation specifics an Item tree could change while fixing.
The tricky thing here is to make it on a proper arena.
It's usually not a problem when a field is deterministic, however, makes a pain vice-versa, during allocation allocating.
A non-deterministic field should be refixed on each statement, since it depends on the environment state.
Changing the tree will be temporary and therefore it should be reverted after the statement execution.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allocate items on thd-&gt;mem_root while refixing vcol exprs
* Make vcol tree changes register and roll them back after the statement is executed.

Explanation:
Due to collation implementation specifics an Item tree could change while fixing.
The tricky thing here is to make it on a proper arena.
It's usually not a problem when a field is deterministic, however, makes a pain vice-versa, during allocation allocating.
A non-deterministic field should be refixed on each statement, since it depends on the environment state.
Changing the tree will be temporary and therefore it should be reverted after the statement execution.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-22339 - Assertion `str_length &lt; len' failed</title>
<updated>2020-06-04T21:52:10+00:00</updated>
<author>
<name>Sergey Vojtovich</name>
<email>svoj@mariadb.org</email>
</author>
<published>2020-04-23T17:58:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=dce4c0f9790f3b3e6f3309b52869ed97963a4eee'/>
<id>dce4c0f9790f3b3e6f3309b52869ed97963a4eee</id>
<content type='text'>
When acquiring SNW/SNRW/X MDL lock DDL/admin statements may abort pending
thr lock in concurrent connection with open HANDLER (or delayed insert
thread).

This may lead to a race condition when table-&gt;alias is accessed
concurrently by such threads. Either assertion failure or memory leak
is a practical consequence of this race condition.

Specifically HANDLER is opening a table and issuing alias.copy(), while
DDL executing get_lock_data()/alias.c_ptr()/realloc()/realloc_raw().

Fixed by perforimg table-&gt;init() before it is published via
thd-&gt;open_tables.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When acquiring SNW/SNRW/X MDL lock DDL/admin statements may abort pending
thr lock in concurrent connection with open HANDLER (or delayed insert
thread).

This may lead to a race condition when table-&gt;alias is accessed
concurrently by such threads. Either assertion failure or memory leak
is a practical consequence of this race condition.

Specifically HANDLER is opening a table and issuing alias.copy(), while
DDL executing get_lock_data()/alias.c_ptr()/realloc()/realloc_raw().

Fixed by perforimg table-&gt;init() before it is published via
thd-&gt;open_tables.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed deadlock with LOCK TABLES and ALTER TABLE</title>
<updated>2020-05-23T11:58:33+00:00</updated>
<author>
<name>Monty</name>
<email>monty@mariadb.org</email>
</author>
<published>2020-05-22T15:02:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=be647ff14d6196af825f05020acee8f18af4773d'/>
<id>be647ff14d6196af825f05020acee8f18af4773d</id>
<content type='text'>
MDEV-21398 Deadlock (server hang) or assertion failure in
Diagnostics_area::set_error_status upon ALTER under lock

This failure could only happen if one locked the same table
multiple times and then did an ALTER TABLE on the table.

Major change is to change all instances of
table-&gt;m_needs_reopen= true;
to
table-&gt;mark_table_for_reopen();

The main fix for the problem was to ensure that we mark all
instances of the table in the locked_table_list and when we
reopen the tables, we first close all tables before reopening
and locking them.

Other things:
- Don't call thd-&gt;locked_tables_list.reopen_tables if there
  are no tables marked for reopen. (performance)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MDEV-21398 Deadlock (server hang) or assertion failure in
Diagnostics_area::set_error_status upon ALTER under lock

This failure could only happen if one locked the same table
multiple times and then did an ALTER TABLE on the table.

Major change is to change all instances of
table-&gt;m_needs_reopen= true;
to
table-&gt;mark_table_for_reopen();

The main fix for the problem was to ensure that we mark all
instances of the table in the locked_table_list and when we
reopen the tables, we first close all tables before reopening
and locking them.

Other things:
- Don't call thd-&gt;locked_tables_list.reopen_tables if there
  are no tables marked for reopen. (performance)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/10.1' into 10.2</title>
<updated>2020-05-16T06:52:08+00:00</updated>
<author>
<name>Alexander Barkov</name>
<email>bar@mariadb.com</email>
</author>
<published>2020-05-16T06:52:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=bf8ae812690a8c20ea17cb5dc24a57be239a8901'/>
<id>bf8ae812690a8c20ea17cb5dc24a57be239a8901</id>
<content type='text'>
Also, adding 10.2 related changes for MDEV-22579
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, adding 10.2 related changes for MDEV-22579
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-22579 No error when inserting DEFAULT(non_virtual_column) into a virtual column</title>
<updated>2020-05-15T16:21:54+00:00</updated>
<author>
<name>Alexander Barkov</name>
<email>bar@mariadb.com</email>
</author>
<published>2020-05-15T16:16:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=3df297271a02ef13babae6ff6a7e47a6bdb7d538'/>
<id>3df297271a02ef13babae6ff6a7e47a6bdb7d538</id>
<content type='text'>
The code erroneously allowed both:
INSERT INTO t1 (vcol) VALUES (DEFAULT);
INSERT INTO t1 (vcol) VALUES (DEFAULT(non_virtual_column));

The former is OK, but the latter is not.
Adding a new virtual method in Item:

virtual bool vcol_assignment_allowed_value() const { return false; }

Item_null, Item_param and Item_default_value override it.

Item_default_value overrides it in the way to:
- allow DEFAULT
- disallow DEFAULT(col)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code erroneously allowed both:
INSERT INTO t1 (vcol) VALUES (DEFAULT);
INSERT INTO t1 (vcol) VALUES (DEFAULT(non_virtual_column));

The former is OK, but the latter is not.
Adding a new virtual method in Item:

virtual bool vcol_assignment_allowed_value() const { return false; }

Item_null, Item_param and Item_default_value override it.

Item_default_value overrides it in the way to:
- allow DEFAULT
- disallow DEFAULT(col)
</pre>
</div>
</content>
</entry>
</feed>
