summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-260 auditing table accessesSergei Golubchik2013-04-1910-33/+372
|
* MDEV-4398 - Vladislav Vaintroub2013-04-193-7/+7
| | | | Change default for innodb_use_fallocate to FALSE, due to bugs in older Linux kernels (posix_fallocate() does not always guarantee that file size is like one specified)
* MDEV-4332 Increase username length from 16 charactersSergei Golubchik2013-04-1818-31/+244
|
* strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)Sergei Golubchik2013-04-1727-121/+102
| | | | with a bit of lame protection against abuse.
* debug_sync is only available in debug build.unknown2013-04-161-0/+1
|
* Fix race in test case.unknown2013-04-163-1/+9
|
* MDEV-3882: .deb versions lower than upstream repo, causing install failureunknown2013-04-164-4/+7
| | | | | | | | | | The official Debian Wheezy MySQL packages have versions like 5.5.30+dfsg-xxx. Such version is larger than 5.5.30-yyy, so apt prefers it. So use instead 5.5.30+maria-yyy, which is larger and can be pulled in automatically by apt. Also included are a couple of fixes for test failures in buildbot.
* compiler warningsSergei Golubchik2013-04-144-23/+10
|
* add missing testsSergei Golubchik2013-04-144-0/+86
|
* Increase default value of max_binlog_cache_size and ↵Michael Widenius2013-04-123-8/+8
| | | | | | | | | | | | | | | max_binlog_stmt_cache_size to ulonglong_max. This fixes that by default LOAD DATA INFILE will not generate the error: "Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage..." mysql-test/suite/sys_vars/r/max_binlog_cache_size_basic.result: Updated test case mysql-test/suite/sys_vars/r/max_binlog_stmt_cache_size_basic.result: Updated test case sql/sys_vars.cc: Increase default value of max_binlog_cache_size and max_binlog_stmt_cache_size to ulonglong_max.
* complier warnings. hide the redundant condition under #ifdefSergei Golubchik2013-04-121-2/+2
| | | | (because only there it makes any sense)
* 5.3 mergeSergei Golubchik2013-04-1215-108/+205
|\
| * 5.2 mergeSergei Golubchik2013-04-118-88/+156
| |\
| | * 5.1 mergeSergei Golubchik2013-04-118-81/+149
| | |\
| | | * MDEV-4244 [PATCH] Buffer overruns and use-after-free errorsSergei Golubchik2013-04-065-72/+108
| | | | | | | | | | | | | | | | fixes for gcc 4.8 - compilation warnings and -fsanitize=address
| | | * MDEV-4088 Replication 10.0 -> 5.5 failsSergei Golubchik2013-04-043-9/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update 5.1 to replicate from 10.0 and to show the server version (as of 10.0) correctly sql-common/client.c: mdev:4088 sql/slave.cc: use the version number, not just the first character of the version string (we want 10 > 4 not "10" < "4").
| * | | MDEV-4244 [PATCH] Buffer overruns and use-after-free errorsSergei Golubchik2013-04-062-4/+4
| | | | | | | | | | | | | | | | fixes for gcc 4.8 -fsanitize=address
| * | | MDEV-4316 MariaDB server crash with signal 11Sergei Golubchik2013-04-065-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fulltext search was initialized for all MATCH ... AGAINST items at the end of the JOIN::optimize(). But since 5.3 derived tables are initialized lazily on first use, very late in the sub_select(). Skip Item_func_match::init_search initialization if the corresponding table isn't open yet; repeat fulltext initialization for all not-yet-initialized MATCH ... AGAINST items after creating derived tables.
| * | | If a range tree has a branch that is an expensive constant,unknown2013-04-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently get_mm_tree skipped the evaluation of this constant and icorrectly proceeded. The correct behavior is to return a NULL subtree, according to the IF branch being fixed - when it evaluates the constant it returns a value, and doesn't continue further.
| * | | Update tests results, mysql-test/r/windows.resultSergey Petrunya2013-04-041-1/+1
| | | |
* | | | MDEV-4356 : MariaDB does not start if bind-address gets resolved to more ↵Vladislav Vaintroub2013-04-071-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | than single IP address. MySQL bug http://bugs.mysql.com/bug.php?id=61713 was fixed in 5.5 Fix is to remove check for multiple entries returned by getaddrinfo(), and use the first entry that works - i.e socket can be created. Unlike Oracle/MySQL's fix ,this one is kept minimal : - we do not prioritize IPv4 over IPv6, orr other way around, and just rely on operating system to sort getaddrinfo() entries in sensible order. There is RFC that defines what is sensible order for getaddrinfo entries ( RFC 3484), and OS specific tweaks are also possible , like /etc/gai.conf o Linux. - also, we do not force "0.0.0.0" address if bind-address is not given - this would be a change in behavior of 5.5 at least on Windows, where passing NULL as to getaddrinfo() gives back IPv6-wildcard.
* | | | MDEV-4338 - Support FusionIO/directFS atomic writesVladislav Vaintroub2013-04-065-0/+153
| | | |
* | | | MDEV-4338 - Support FusionIO/directFS atomic writesVladislav Vaintroub2013-04-065-0/+153
| | | |
* | | | compilation warningsSergei Golubchik2013-04-041-6/+6
| | | |
* | | | fix have_debug_sync.inc to be more robustSergei Golubchik2013-04-042-7/+4
| | | | | | | | | | | | | | | | (debug_sync value can have single quotes)
* | | | MDEV-4161 Assertion `status_var.memory_used == 0' fails in virtual THD::~THD()Sergei Golubchik2013-04-044-1/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | init join->top_join_tab_count to be in sync with join->join_tab=stat, otherwise a query can be killed in-between and join_tab's won't be deleted (JOIN::cleanup won't call JOIN_TAB::cleanup)
* | | | MDEV-4243 Warnings/errors while compiling with clangSergei Golubchik2013-03-2813-24/+19
| | | |
* | | | Merge 5.3 -> 5.5Sergey Petrunya2013-04-036-10/+46
|\ \ \ \ | |/ / /
| * | | MDEV-4240: mariadb 5.3.12 using more memory than MySQL 5.1 for an ↵Sergey Petrunya2013-04-012-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inefficient query - Let index_merge allocate table handlers on quick select's MEM_ROOT, not on statement's MEM_ROOT. This is crucial for big "range checked for each record" queries, where index_merge can be created and deleted many times during query exection. We should not make O(#rows) allocations on statement's MEM_ROOT.
| * | | MDEV-4335: Unexpected results when selecting on information_schemaSergey Petrunya2013-03-294-0/+33
| | | | | | | | | | | | | | | | | | | | - When converting a subquery to a semi-join, propagate OPTION_SCHEMA_TABLE.
* | | | Fix for MDEV-4144unknown2013-03-2911-32/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Analysis: The reason for the inefficent plan was that Item_subselect::is_expensive() didn't detect the special case when a subquery was optimized, but had no join plan because it either has no table, or its tables have been optimized away, or the optimizer detected that the result set is empty. Solution: Identify the special cases above in the Item_subselect::is_expensive(), and consider such degenerate subqueries inexpensive.
* | | | MDEV-4243 : remove several clang warnings.Vladislav Vaintroub2013-03-293-59/+62
| | | |
* | | | Merge 5.3->5.5.Igor Babaev2013-03-283-4/+498
|\ \ \ \ | |/ / /
| * | | Merge.Igor Babaev2013-03-273-4/+498
| |\ \ \
| | * | | Fixed bug mdev-4318.Igor Babaev2013-03-223-4/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases, when using views the optimizer incorrectly determined possible join orders for queries with nested outer and inner joins. This could lead to invalid execution plans for such queries.
* | | | | MergeIgor Babaev2013-03-275-2/+158
|\ \ \ \ \
| * | | | | Fixed bug mdev-4311 (bug #68749).Igor Babaev2013-03-275-2/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug was introduced by the patch for WL#3220. If the memory allocated for the tree to store unique elements to be counted is not big enough to include all of them then an external file is used to store the elements. The unique elements are guaranteed not to be nulls. So, when reading them from the file we don't have to care about the null flags of the read values. However, we should remove the flag at the very beginning of the process. If we don't do it and if the last value written into the record buffer for the field whose distinct values needs to be counted happens to be null, then all values read from the file are considered to be nulls and are not counted in. The fix does not remove a possible null flag for the read values. Rather it just counts the values in the same way it was done before WL #3220.
* | | | | | 5.3 mergeSergei Golubchik2013-03-2738-293/+877
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | 5.2 mergeSergei Golubchik2013-03-2612-125/+171
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | 5.1 mergeSergei Golubchik2013-03-2612-124/+172
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | add 'plugins' suite - empty, but the lineSergei Golubchik2013-03-200-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ./mtr --suite=main,plugins will work on all branches.
| | | * | | MDEV-4295 Server crashes in get_point on a query with Area, AsBinary, ↵Alexey Botchkov2013-03-193-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MultiPoint. Need to check if the number of points is 0 for the polygon.
| | | * | | MDEV-4296 Assertion `n_linear_rings > 0' fails in Gis_polygon::centroid_xy.Alexey Botchkov2013-03-193-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forgotten DBUG_ASSERT should be replaced with the 'return error'.
| | | * | | MDEV-4269 fix.unknown2013-03-183-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | Item_default_value inherited form Item_field so should create temporary table field similary.
| | | * | | MDEV-4252 geometry query crashes server.Alexey Botchkov2013-03-184-21/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional fixes for possible overflows in length-related calculations in 'spatial' implementations. Checks added to the ::get_data_size() methods. max_n_points decreased to occupy less 2G size. An object of that size is practically inoperable anyway.
| | | * | | MDEV-4289 Assertion `0' fails in make_sortkey with GROUP_CONCAT, MAKE_SET, ↵Sergei Golubchik2013-03-185-85/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GROUP BY Item_func_make_set wasn't taking into account the first argument when calculating maybe_null. sql/item_strfunc.cc: rewrite Item_func_make_set, removing separate storage of the first argument sql/item_strfunc.h: rewrite Item_func_make_set, removing separate storage of the first argument
| | | * | | MDEV-4252 geometry query crashes server.Alexey Botchkov2013-03-104-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug was found by Alyssa Milburn. If the number of points of a geometry feature read from binary representation is greater than 0x10000000, then the (uint32) (num_points * 16) will cut the higher byte, which leads to various errors. Fixed by additional check if (num_points > max_n_points).
| * | | | | GEOMETRYCOLLECTION EMPTY handling fixed.Alexey Botchkov2013-03-263-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The get_mbr() method shouldn't return the error, rather an invalid MBR in this case.
| * | | | | MDEV-4292 fix.unknown2013-03-263-11/+144
| | | | | | | | | | | | | | | | | | | | | | | | Fixed printing column_get finction.
| * | | | | MDEV-4310 geometry function equals hangs forever.Alexey Botchkov2013-03-223-25/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Geometry::get_mbr() function can return an error on a bad data. We have to check for that and act respectively.