summaryrefslogtreecommitdiff
path: root/storage/csv
Commit message (Collapse)AuthorAgeFilesLines
* Backport of:Konstantin Osipov2009-11-242-5/+5
| | | | | | | | | | | ---------------------------------------------------------------------- ChangeSet@1.2571, 2008-04-08 12:30:06+02:00, vvaintroub@wva. +122 -0 Bug#32082 : definition of VOID in my_global.h conflicts with Windows SDK headers VOID macro is now removed. Its usage is replaced with void cast. In some cases, where cast does not make much sense (pthread_*, printf, hash_delete, my_seek), cast is ommited.
* Merge from mysql-next-mr.Alexander Nozdrin2009-10-231-2/+2
|\
| * Manual merge from mysql-trunk-merge.Alexander Nozdrin2009-10-141-2/+2
| |\
| | * Merge from mysql-5.1.Alexander Nozdrin2009-10-131-2/+2
| | |\
| | | * Bug #43414 Parenthesis (and other) warnings compiling MySQLStaale Smedseng2009-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | with gcc 4.3.2 Cleaning up warnings not present in 5.0.
* | | | Backport of:Konstantin Osipov2009-10-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------------------------------------------- revno: 2617.22.5 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-6.0-runtime timestamp: Tue 2009-01-27 05:08:48 +0300 message: Remove non-prefixed use of HASH. Always use my_hash_init(), my_hash_inited(), my_hash_search(), my_hash_element(), my_hash_delete(), my_hash_free() rather than non-prefixed counterparts (hash_init(), etc). Remove the backward-compatible defines.
* | | | Backport of:Konstantin Osipov2009-10-132-8/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | ---------------------------------------------------------- revno: 2630.7.1 committer: Konstantin Osipov <konstantin@mysql.com> branch nick: mysql-6.0-lock-tables-new timestamp: Mon 2008-06-02 15:14:18 +0400 message: Fix a test suite timeout in partition.test and partition_csv.test
* | | Backport http://lists.mysql.com/commits/57778Vladislav Vaintroub2009-09-301-2/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2677 Vladislav Vaintroub 2008-11-04 CMakeLists.txt files cleanup - remove SAFEMALLOC and SAFE_MUTEX definitions that were present in *each* CMakeLists.txt. Instead, put them into top level CMakeLists.txt, but disable on Windows, because a) SAFEMALLOC does not add any functionality that is not already present in Debug C runtime ( and 2 safe malloc one on top of the other only unnecessarily slows down the server) b)SAFE_MUTEX does not work on Windows and have been explicitely disabled on Windows with #undef previously. Fortunately, ntdll does pretty good job identifying l problems with CRITICAL_SECTIONs. DebugBreak()s on using uninited critical section, unlocking unowned critical section) -Also, remove occationally used -D_DEBUG (added by compiler anyway)
* | Creation of mysql-trunk = {summit + "Innodb plugin replacing the builtin"}:Guilhem Bichot2009-08-041-9/+2
|\ \ | |/ | | | | | | | | | | bzr branch mysql-5.1-performance-version mysql-trunk # Summit cd mysql-trunk bzr merge mysql-5.1-innodb_plugin # which is 5.1 + Innodb plugin bzr rm innobase # remove the builtin Next step: build, test fixes.
| * Backport WL#3653 to 5.1 to enable bundled innodb plugin.Vladislav Vaintroub2009-06-101-9/+2
| | | | | | | | | | Remove custom DLL loader code from innodb plugin code, use symbols exported from mysqld.
* | Merge MySQL 5.1.35 into MySQL 5.4Mikael Ronstrom2009-06-114-38/+39
|\ \ | |/
| * compiler warning fixSergey Glukhov2009-03-244-33/+34
| |
| * fixed compilation warnings. addendum to the fix for bug 29125Georgi Kodinov2009-03-201-2/+2
| |
| * Bug#29125 Windows Server X64: so many compiler warningsIgnacio Galarza2009-02-133-3/+3
| | | | | | | | | | | | - Remove bothersome warning messages. This change focuses on the warnings that are covered by the ignore file: support-files/compiler_warnings.supp. - Strings are guaranteed to be max uint in length
* | Ensure that all dtrace files are properly removed during make cleanMySQL Build Team2009-04-051-0/+1
| |
* | Fixing some issues in the build when using DTrace probesMC Brown2009-03-181-1/+1
| | | | | | | | | | | | | | Probe definition file is now a separate file that is copied during build to the correct location, this enforces dependency requirements correctly and allows builds to work when using the current or separate build directories
* | Yet another attempt of getting DTrace builds done properlyMikael Ronstrom2009-02-211-6/+7
| |
* | A workaround to handle the problem with thatMikael Ronstrom2009-02-201-3/+7
| | | | | | | | | | | | | | abs_top_srcdir doesn't work on some automake platforms. Done by copying the .d files to the build directories.
* | Changed to use top_srcdir instead of abs_top_srcdir since manyMikael Ronstrom2009-02-201-1/+1
| | | | | | | | automake tools on Solaris seems to have a bug related to the use of abs_top_srcdir
* | More readability for DTrace commandsMikael Ronstrom2009-02-201-1/+1
| |
* | Merged Performance Version 0.2.1 with latest 5.1 tree (last push 11 feb ↵Mikael Ronstrom2009-02-171-0/+11
|\ \ | |/ | | | | 14.01.13 2009)
| * Bug#41441 repair csv table crashes debug serverSergey Glukhov2008-12-291-0/+11
| | | | | | | | | | | | | | | | The problem: data file can not be deleted on win because there is another opened instance of this file. Data file might be opened twice, on table opening stage and during write_row execution. We need to close both instances to satisfy Win.
* | Reverted DTrace fixMikael Ronstrom2009-02-061-1/+1
| |
* | Added support for rep; nop replacing PAUSE due to Solaris bugMikael Ronstrom2009-02-031-1/+1
| | | | | | | | | | | | | | Replaced abs_top_srcdir with top_srcdir, not sure it's an improvement but at least it's known that abs_top_srcdir in cases have a problem and this is a more common variable to use for the same purpose.
* | A number of fixes to DTrace patchMikael Ronstrom2008-12-201-2/+1
| | | | | | Removed instance manager from builds
* | Backport of DTrace patches from 6.0Mikael Ronstrom2008-12-202-5/+39
|/
* Bug#36638 mysqld crashes when open file limit is passed and general query ↵Sergey Glukhov2008-08-151-19/+19
| | | | | | | | | | | | | log enabled The problem: CSV storage engine open function returns success even thought it failed to open the data file The fix: return error Additional fixes: added MY_WME to my_open to avoid mysterious error message free share struct if open the file was unsuccessful
* Merge ↵antony@pcg5ppc.xiphis.org2008-03-072-6/+42
|\ | | | | | | | | | | pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1-engines into pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/merge.20080307/mysql-5.1
| * Bug#33067acurtis/antony@xiphis.org/ltamd64.xiphis.org2008-01-172-6/+42
| | | | | | | | | | | | | | | | "Update of CSV row incorrect for some BLOBs" when reading in rows, move blob columns into temporary storage not allocated by Field_blob class or else row update operation will alter original row and make mysql think that nothing has been changed. fix incrementing wrong statistic values.
* | Merge bk-internal.mysql.com:/home/bk/mysql-5.1-buildiggy@alf.(none)2008-02-211-0/+1
|\ \ | |/ |/| | | into alf.(none):/src/mysql-5.1-build_31929
| * Bug#31929 Windows build fails with >=4 Parallel build threads.iggy@alf.(none)2008-01-291-0/+1
| | | | | | | | | | - Add GenError Dependency to storage engines that include mysqld_error.h
* | Merge stella.local:/home2/mydev/mysql-5.1-amainistruewing@stella.local2007-12-111-9/+4
|\ \ | | | | | | | | | into stella.local:/home2/mydev/mysql-5.1-axmrg
| * | BUG#32817 - though CSV is marked as supported create table is rejectedsvoj@mysql.com/june.mysql.com2007-12-071-1/+4
| | | | | | | | | | | | | | | | | | | | | with error 1005. CSV doesn't support nullable fields. Report descriptive error if create table with nullable field is requested.
| * | BUG#32050 - table logging gone wrong.svoj@mysql.com/april.(none)2007-11-271-8/+0
| |/ | | | | | | | | | | | | | | | | | | INSERT/UPDATE against CSV table created by MySQL earlier than 5.1.23 with NULL-able column results in server crash in debug builds. Starting with 5.1.23 CSV doesn't permit creation of NULL-able columns, but it is still possible to get such table from older MySQL versions. Fixed by removing excessive DBUG_ASSERT().
* | Merge ramayana.hindu.god:/home/tsmith/m/bk/51tsmith@ramayana.hindu.god2007-10-221-2/+2
|\ \ | |/ |/| | | into ramayana.hindu.god:/home/tsmith/m/bk/maint/51
| * Merge polly.(none):/home/kaa/src/maint/mysql-5.0-maintkaa@polly.(none)2007-10-181-2/+2
| | | | | | | | into polly.(none):/home/kaa/src/maint/mysql-5.1-maint
* | Bug#31473antony@pcg5ppc.xiphis.org2007-10-181-9/+27
|/ | | | | | | | | | "CSV does not work with NULL value in datetime fields" Attempting to insert a row with a NULL value for a DATETIME field results in a CSV file which the storage engine cannot read. Don't blindly assume that "0" is acceptable for all field types, Since CSV does not support NULL, we find out from the field the default non-null value. Do not permit the creation of a table with a nullable columns.
* Merge bk-internal.mysql.com:/home/bk/mysql-5.1-marveljbruehe/mysqldev@mysql.com/production.mysql.com2007-08-161-1/+6
|\ | | | | | | into mysql.com:/data0/mysqldev/my/mysql-5.1-30367
| * CMakeLists.txt (many), win/README, mysql_manifest.cmake, configure.js:kent@mysql.com/kent-amd64.(none)2007-08-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional changes for bug#29903 - Changed to do embedded build part as normal build, when WITH_EMBEDDED_SERVER is set. - Allow both normal and debug build with embedded. - Build static embedded library by pointing out all source and compile it all, i.e. not building libraries from libraries, not portable. - Let embedded use generated files from the "sql" directory, added dependencies to make sure built before embedded. - Mark library "dbug" in TARGET_LINK_LIBRARIES() with "debug", so only linked in when debug target is used. - Removed change of target name with "mysqld${MYSQLD_EXE_SUFFIX}", as others can't depend on it, not defined at configure time. Instead set the output file name. - Created work around for bug in CMake 2.4.6 and output names, to set the "mysqld<suffix>.pdb" name to the same base name. - Set the correct manifest "name" (patch by iggy)
* | Fixed a lot of compiler warnings and errors detected by Forte C++ on Solarismonty@mysql.com/nosik.monty.fi2007-08-131-0/+4
|/ | | | | | | | | | | | Faster thr_alarm() Added 'Opened_files' status variable to track calls to my_open() Don't give warnings when running mysql_install_db Added option --source-install to mysql_install_db I had to do the following renames() as used polymorphism didn't work with Forte compiler on 64 bit systems index_read() -> index_read_map() index_read_idx() -> index_read_idx_map() index_read_last() -> index_read_last_map()
* WL#3984 (Revise locking of mysql.general_log and mysql.slow_log)malff/marcsql@weblab.(none)2007-07-272-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#25422 (Hang with log tables) Bug 17876 (Truncating mysql.slow_log in a SP after using cursor locks the thread) Bug 23044 (Warnings on flush of a log table) Bug 29129 (Resetting general_log while the GLOBAL READ LOCK is set causes a deadlock) Prior to this fix, the server would hang when performing concurrent ALTER TABLE or TRUNCATE TABLE statements against the LOG TABLES, which are mysql.general_log and mysql.slow_log. The root cause traces to the following code: in sql_base.cc, open_table() if (table->in_use != thd) { /* wait_for_condition will unlock LOCK_open for us */ wait_for_condition(thd, &LOCK_open, &COND_refresh); } The problem with this code is that the current implementation of the LOGGER creates 'fake' THD objects, like - Log_to_csv_event_handler::general_log_thd - Log_to_csv_event_handler::slow_log_thd which are not associated to a real thread running in the server, so that waiting for these non-existing threads to release table locks cause the dead lock. In general, the design of Log_to_csv_event_handler does not fit into the general architecture of the server, so that the concept of general_log_thd and slow_log_thd has to be abandoned: - this implementation does not work with table locking - it will not work with commands like SHOW PROCESSLIST - having the log tables always opened does not integrate well with DDL operations / FLUSH TABLES / SET GLOBAL READ_ONLY With this patch, the fundamental design of the LOGGER has been changed to: - always open and close a log table when writing a log - remove totally the usage of fake THD objects - clarify how locking of log tables is implemented in general. See WL#3984 for details related to the new locking design. Additional changes (misc bugs exposed and fixed): 1) mysqldump which would ignore some tables in dump_all_tables_in_db(), but forget to ignore the same in dump_all_views_in_db(). 2) mysqldump would also issue an empty "LOCK TABLE" command when all the tables to lock are to be ignored (numrows == 0), instead of not issuing the query. 3) Internal errors handlers could intercept errors but not warnings (see sql_error.cc). 4) Implementing a nested call to open tables, for the performance schema tables, exposed an existing bug in remove_table_from_cache(), which would perform: in_use->some_tables_deleted=1; against another thread, without any consideration about thread locking. This call inside remove_table_from_cache() was not required anyway, since calling mysql_lock_abort() takes care of aborting -- cleanly -- threads that might hold a lock on a table. This line (in_use->some_tables_deleted=1) has been removed.
* Fix for bug #29253: csv table reportedly marked as crashedramil/ram@mysql.com/ramil.myoffice.izhnet.ru2007-07-142-6/+49
| | | | | | | | | | | Problem: the data file changes made during delete/update are not visible to other threads as the file is reopened, so reading data with old descriptors might miss the changes. Fix: reopen the data file before reading if it was reopened during delete/update to ensure there's no data behind. Note: there's no simple test case.
* Fix for bug #29652: csv.test failure: two changes conflict after mergeramil/ram@mysql.com/ramil.myoffice.izhnet.ru2007-07-102-2/+14
| | | | | | | Problem: we don't take into account the length of the data written to the temporary data file during update on a CSV table. Fix: properly calculate the data file length during update.
* Merge sita.local:/Users/tsmith/m/bk/51tsmith@sita.local2007-07-091-1/+4
|\ | | | | | | | | | | | | into sita.local:/Users/tsmith/m/bk/maint/51 This merge requires a post-merge fix to remove rpl_udf from suite/rpl/t/disabled.def.
| * Merge chilla.local:/home/mydev/mysql-5.1-amainistruewing@chilla.local2007-06-241-1/+4
| |\ | | | | | | | | | into chilla.local:/home/mydev/mysql-5.1-axmrg
| | * Merge mysql.com:/home/svoj/devel/bk/mysql-5.1-enginessvoj@april.(none)2007-06-221-1/+4
| | |\ | | | | | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG28971/mysql-5.1-engines
| | | * BUG#28971 - ALTER TABLE followed by UPDATE for a CSV tablesvoj@mysql.com/april.(none)2007-06-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make server crash UPDATE against CSV table may cause server crash or update a table with wrong values. CSV can write only a whole row at once. That means it must read all columns, that it is not going to update, and write them along with updated columns. But only limited set of columns was read, those that were needed for the UPDATE query. With this fix all columns are read in case we're performing an UPDATE.
* | | | Fix for bug #29411: deleting from a csv table leads to the table corruptionramil/ram@mysql.com/ramil.myoffice.izhnet.ru2007-07-051-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: we don't adjust share->rows_recorded and local_saved_data_file_length deleting rows from a CSV table, so following table check may fail. Fix: properly adjust those values.
* | | | Complementary fix for bug #29353: inserting a negative value to a csv table ramil/ram@mysql.com/ramil.myoffice.izhnet.ru2007-07-031-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | leads to the table corruption New Field::store() method implemented to explicitly set thd->count_cuted_fields before value storing, instead of (incorrectly) setting it in the CSV storage engine. Thread row counter now properly incremented during check and repair in the CSV engine.
* | | | Fix for bug #29353: inserting a negative value to a csv table leads to the ↵ramil/ram@mysql.com/ramil.myoffice.izhnet.ru2007-06-271-34/+36
|/ / / | | | | | | | | | | | | | | | | | | | | | table corruption Problem: we believe a number cannot start with '-' ['+'] sign reading rows. Fix: let field->store() check given values.