- 06 Nov, 2015 7 commits
-
-
Elena Stepanova authored
commit 6b203426
-
Sergei Petrunia authored
MDEV-8981: Analyze stmt - cycles can overflow
-
Sergey Vojtovich authored
A comment in debian/mariadb-server-10.1.postinst says: "can safely run on upgrades with existing databases". While this is true there're a few reasons not to do that: - it increases installation time (it has to run rather heavy mysqld multiple times) - as well as it increases mysqld downtime - it may fail if database has some plugin specific configs (see MDEV-8437) - there should be no need to run this script on upgrade: they should be handled by mysql_upgrade to - RPM postin doesn't call it if database directory exists Also postinst is not supposed to create database directories: let mysql_install_db do that intead.
-
Sergey Vojtovich authored
There was code that was supposed to "catch upgrades from previous versions where the root password wasn't set". But it is wrong in many regards: - it is supposed to be executed against running server, but at this point server should be down, which makes this code no-op - if the above is fixed, root password will be requested twice (initial root password request + this one) - it asks for a password only once, while "initial root password request" asks twice (password + password verification) - it may give false positive if unix socket based authentication is in effect Removed this code since it didn't work for quite a while (at least since mysql-5.1) and nobody cared about it.
-
Sergey Vojtovich authored
There is no strong need to change password column: the only side effect is that 4.0 -> 10.1 upgrades may get root/debian-sys-maint passwords stored in old format. This should be perfectly acceptable, since all password at this point are stored in old format.
-
Sergey Vojtovich authored
Removed redundant attempt to create mysql.plugin table: - original code was supposed to INSTALL some plugins: INSERT INTO plugin VALUES ('innodb', 'ha_innodb.so'), ('federated', 'ha_federated.so'), ('blackhole', 'ha_blackhole.so'), ('archive', 'ha_archive.so'); - original code was supposed to fail if mysql.plugin exists: The query sequence is supposed to be aborted if the CREATE TABLE fails due to an already existent table in which case the admin might already have chosen to remove one or more plugins. - mysql.plugin must've been created by preceeding mysql_install_db anyway
-
Nirbhay Choubey authored
During the process of guessing the IP address, if bind-address is INADDR_ANY, mysqld should proceed with address specified via wsrep_node_address or use one from network interfaces. Patch contributed by darkain (pull#115).
-
- 05 Nov, 2015 1 commit
-
-
Jan Lindström authored
Analysis: Lengths which are not UNIV_SQL_NULL, but bigger than the following number indicate that a field contains a reference to an externally stored part of the field in the tablespace. The length field then contains the sum of the following flag and the locally stored len. This was incorrectly set to define UNIV_EXTERN_STORAGE_FIELD (UNIV_SQL_NULL - UNIV_PAGE_SIZE_MAX) When it should be define UNIV_EXTERN_STORAGE_FIELD (UNIV_SQL_NULL - UNIV_PAGE_SIZE_DEF) Additionally, we need to disable support for > 16K page size for row compressed tables because a compressed page directory entry reserves 14 bits for the start offset and 2 bits for flags. This limits the uncompressed page size to 16k. To support larger pages page directory entry needs to be larger.
-
- 04 Nov, 2015 2 commits
-
-
Nirbhay Choubey authored
Post-fix: Reverting the patch for MDEV-6069 brought some ALTERs with ENGINE=MYISAM back into the mysql_system_tables_fix.sql script. As a result, running mysql_upgrade with global enforce_storage_engine=INNODB (or any other non-MyISAM engine, for that matter) would fail. Fixed by locally unsetting enforce_storage_engine in the upgrade script.
-
Vladislav Vaintroub authored
The verifier exception is caused by using thread local storage key after key was deleted. my_free() used current_thd within malloc size callback, which does pthread_get_specific(THR_THD), but THR_THD is already deleted at this point. The fix moves pthread_key_delete() to a later point in shutdown.
-
- 03 Nov, 2015 7 commits
-
-
Nirbhay Choubey authored
This reverts commit 5e6f1236.
-
Nirbhay Choubey authored
This reverts commit f8381d93.
-
Jan Lindström authored
Test used aes_ctr that is not available everywhere when aes_cbc is fine also for this test.
-
Nirbhay Choubey authored
Some modifications in galera_new_cluster : * Do not use absolute path for systemctl * Fix parameter substitution syntax
-
Daniel Black authored
Now this error out and refers to galera_new_cluster.
-
Daniel Black authored
Use galera_new_cluster instead. systemctl start mariadb@bootstrap will generate error message, use_galera_new_cluster.conf is the name of the file that will generate this error. Output: Job for mariadb@bootstrap.service failed. See "systemctl status mariadb@bootstrap.service" and "journalctl -xe" for details. ● mariadb@bootstrap.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb@.service; disabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/mariadb@bootstrap.service.d └─use_galera_new_cluster.conf Active: failed (Result: exit-code) since Thu 2015-10-15 19:27:52 CEST; 5s ago Process: 24334 ExecStart=/usr/bin/false (code=exited, status=1/FAILURE) Process: 24330 ExecStart=/usr/bin/echo Please use galera_new_cluster to start the mariadb service with --wsrep-new-cluster (code=exited, status=0/SUCCESS) Main PID: 24334 (code=exited, status=1/FAILURE) Oct 15 19:27:52 spaceman systemd[1]: Starting MariaDB database server... Oct 15 19:27:52 spaceman systemd[1]: mariadb@bootstrap.service: main process exited, code=exited, status=1/FAILURE Oct 15 19:27:52 spaceman systemd[1]: Failed to start MariaDB database server. Oct 15 19:27:52 spaceman systemd[1]: Unit mariadb@bootstrap.service entered failed state. Oct 15 19:27:52 spaceman systemd[1]: mariadb@bootstrap.service failed.
-
Elena Stepanova authored
-
- 01 Nov, 2015 1 commit
-
-
Alexey Botchkov authored
we don't test for not-existing gis extra in FRM.
-
- 30 Oct, 2015 3 commits
-
-
Nirbhay Choubey authored
Add comment about bind-address mentioned under galera section.
-
Jan Lindström authored
Redo log encryption used too short buffer when getting encryption keys.
-
Jan Lindström authored
-
- 29 Oct, 2015 6 commits
-
-
Oleksandr Byelkin authored
Part 2: removed hack workaround for bug we do not have.
-
Oleksandr Byelkin authored
small sixes of used_tables() usage
-
Sergei Golubchik authored
* clarify the comment in the preset file * make boolean --aria-encrypt-tables option to work without an argument
-
Sergei Golubchik authored
Restore changes that were lost in a merge. Originally from commit 66fd45af Author: Sergei Golubchik <serg@mariadb.org> Date: Mon Jun 8 21:06:56 2015 +0200 MDEV-7398 mysqld segfaults on FreeBSD 10.1 i386 when built with clang 3.4
-
Jan Lindström authored
Problem is that we expect key_version to be increasing so before we reset debug_key_management plugin key_version disable encryption.
-
Jan Lindström authored
Add diagnostics when externally stored field is freed but rollback ctx is not what we expect.
-
- 28 Oct, 2015 2 commits
-
-
Jan Lindström authored
At least some of the failures where due to fact that TMPDIR contained old file.
-
Jan Lindström authored
Incorrect parameter type was used. Fixed by casting data types to correct ones.
-
- 24 Oct, 2015 1 commit
-
-
Daniel Black authored
A 64bit counter can overflow within the time of a query so lets take it that the measurement is the small value rather than an order 1e12 millisecond query. tested with: int main() { ulonglong start = ULONGLONG_MAX - 30; ulonglong end = 600; ulonglong cycles = 10000; cycles += end - start; if (unlikely(end < start)) cycles += ULONGLONG_MAX; printf("cycles %llu\n", cycles); }
-
- 22 Oct, 2015 5 commits
-
-
Michael Widenius authored
-
Michael Widenius authored
THD is already available in Protocol
-
Michael Widenius authored
-
Alexander Barkov authored
and ErrConvString::ErrConvString(String *).
-
Alexander Barkov authored
The fix for MDEV-8918 previously fixed the problem reported in MDEV-7195. Adding a test case from MDEV-7195 only.
-
- 15 Oct, 2015 3 commits
-
-
Alexander Barkov authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 14 Oct, 2015 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
create_embedded_thd() must reset current_thd before returning, otherwise client [de-]allocations will be happening in that stray THD context
-