mariadb/extra
Eugene Kosov 6c5c1f0b2f MDEV-19231 make DB_SUCCESS equal to 0
It's a micro optimization. On most platforms CPUs has instructions to
compare with 0 fast. DB_SUCCESS is the most popular outcome of functions
and this patch optimized code like (err == DB_SUCCESS)

BtrBulk::finish(): bogus assertion fixed

fil_node_t::read_page0(): corrected usage of os_file_read()

que_eval_sql(): bugus assertion removed. Apparently it checked that
the field was assigned after having been zero-initialized at
object creation.

It turns out that the return type of os_file_read_func() was changed
in mysql/mysql-server@98909cefbc (MySQL 5.7)
from ibool to dberr_t. The reviewer (if there was any) failed to
point out that because of future merges, it could be a bad idea to
change the return type of a function without changing the function name.

This change was applied to MariaDB 10.2.2 in
commit 2e814d4702 but the
MariaDB-specific code was not fully adjusted accordingly,
e.g. in fil_node_open_file(). Essentially, code like
!os_file_read(...) became dead code in MariaDB and later
in Mariabackup 10.2, and we could be dealing with an uninitialized
buffer after a failed page read.
2019-04-25 16:29:55 +03:00
..
crc32-vpmsum crc32-vpmsum: Restore non volatile registers on zero length CRC 2016-08-05 11:50:46 +04:00
mariabackup MDEV-19231 make DB_SUCCESS equal to 0 2019-04-25 16:29:55 +03:00
readline Merge 10.0.14 into 10.1 2014-10-15 12:59:13 +02:00
yassl Merge 10.0 into 10.1 2018-03-20 19:25:08 +02:00
charset2html.c spelling fixes 2017-03-07 13:38:06 +04:00
CMakeLists.txt MDEV-17958: Make innochecksum follow the build option 2018-12-14 13:52:13 +02:00
comp_err.c Fixed wrong arguments to printf and related functions 2018-01-04 16:24:09 +02:00
innochecksum.cc Merge 10.1 into 10.2 2018-12-17 20:15:38 +02:00
my_print_defaults.c After-merge fix for commit 98eb9518db 2018-03-16 15:49:53 +02:00
mysql_waitpid.c MDEV-8012: Wrong exit code when asking for help 2016-06-12 22:47:18 +03:00
mysqld_safe_helper.c mysqld_safe_help - remove warning 2017-04-30 15:06:01 +04:00
perror.c Merge branch '10.1' into 10.2 2016-09-09 08:33:08 +02:00
replace.c Merge branch '10.0' into 10.1 2017-10-22 13:03:41 +02:00
resolve_stack_dump.c resolve_stack_dump updated to match latest stack trace format 2017-12-03 12:45:54 +02:00
resolveip.c MDEV-419 ensure that all HAVE_XXX constants can be set by cmake 2012-07-31 19:29:07 +02:00