mariadb/extra
Marko Mäkelä b817afaa1c MDEV-28689, MDEV-28690: Remove ctrl_mutex
This reverts the revert 4f62dfe676
and fixes the hang that was introduced when ctrl_mutex was removed.

The test mariabackup.compress_qpress covers this code, but the
test is skipped if a stand-alone qpress executable is not available.
It is not available in many software repositories, possibly because
the code base has not been updated since 2010.

This was tested with an executable that was compile from the source
code at http://www.quicklz.com/qpress-11-source.zip (after adding
a missing #include <unistd.h> for the definition of isatty()).

Compared to the grandparent commit (before the revert), the changes
are as follows:

comp_thread_ctxt_t::done_cond: A separate condition for completed
compression, signaling that thd->to_len has been updated.

compress_write(): Replace some threads[i] with thd.
Reset thd->to_len = 0 after consuming the compressed data.

compress_worker_thread_func(): After consuming the uncompressed
data, set thd->data_avail = FALSE. After compressing, signal
thd->done_cond.
2022-07-11 21:00:18 +03:00
..
crc32-vpmsum MDEV-21984: POWER crc32 acceleration - fix clang's behavior on versions >= 7 2020-04-13 14:32:10 +03:00
mariabackup MDEV-28689, MDEV-28690: Remove ctrl_mutex 2022-07-11 21:00:18 +03:00
readline Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
yassl Merge branch 10.2 into 10.3 2021-12-23 14:14:04 +01:00
charset2html.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CMakeLists.txt Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
comp_err.c Merge 10.2 into 10.3 2020-05-25 19:41:58 +03:00
innochecksum.cc Merge 10.2 into 10.3 2022-04-06 08:06:35 +03:00
my_print_defaults.c MDEV-25354: Fix my_print_defaults wording 2021-04-14 14:57:32 +10:00
mysql_waitpid.c Update FSF Address 2019-05-11 21:29:06 +03:00
mysqld_safe_helper.c mysqld_safe_help - remove warning 2017-04-30 15:06:01 +04:00
perror.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
replace.c Fix clang-15 -Wdeprecated-non-prototype 2022-07-01 09:34:31 +03:00
resolve_stack_dump.c Fixed memory leaks in resolve_stack_dump 2020-04-18 11:51:42 +03:00
resolveip.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00