- 10 Dec, 2009 5 commits
-
-
Alexander Nozdrin authored
-
Alexander Nozdrin authored
-
Alexander Nozdrin authored
-
Alexander Nozdrin authored
-
Sergey Vojtovich authored
-
- 09 Dec, 2009 2 commits
-
-
Sergey Vojtovich authored
-
Sergey Vojtovich authored
WL#3951 - MyISAM: Additional Error Logs for Data Corruption Fixed partition_repair_myisam.test.
-
- 08 Dec, 2009 4 commits
-
-
Magne Mahre authored
Bug#35591 FLUSH PRIVILEGES caused a crash A race condition on the privilege hash tables (proc_priv_hash and func_priv_hash) caused one thread to try to delete elements that had already been deleted by another thread. The bug was caused by reading and saving the pointers to the hash tables outside mutex protection. This led to an inconsistency where a thread copied a pointer to a hash, another thread did the same, the first thread then deleted the hash, and the second then crashed when it in turn tried to delete the deleted hash. The fix is to ensure that operations on the shared hash structures happens under mutex protection (moving the locking up a little)
-
V Narayanan authored
-
V Narayanan authored
-
Alexander Nozdrin authored
-
- 07 Dec, 2009 4 commits
-
-
He Zhenxing authored
-
Sergey Vojtovich authored
Implemented a new INFORMATION_SCHEMA table, which is intended to provide information about tablespaces.
-
Alexander Barkov authored
The problem is not actually related to 2byte collation IDs. The same crash happens if you change the collation ID in mysql-test/str_data/Index.xml to a value smaller than 256. Crash happened in SQL parser, because the "ident_map" and "state_map" arrays were not initialized in loadable utf8 collations. Fix: adding proper initialization of the "ident_map" and "state_map" members for loadable utf8 collations.
-
Alexander Nozdrin authored
-
- 05 Dec, 2009 3 commits
-
-
He Zhenxing authored
-
He Zhenxing authored
-
Marc Alff authored
Part II, engines instrumentation
-
- 04 Dec, 2009 9 commits
-
-
Alexander Nozdrin authored
-
He Zhenxing authored
-
He Zhenxing authored
-
He Zhenxing authored
-
He Zhenxing authored
Added back n_frees, use 'clear' instead of 'free' since memory is not freed here.
-
He Zhenxing authored
-
He Zhenxing authored
-
He Zhenxing authored
Before this patch, semisync assumed transactions running in parallel can not be larger than max_connections, but this is not true when the event scheduler is executing events, and cause semisync run out of preallocated transaction nodes. Fix the problem by allocating transaction nodes dynamically. This patch also fixed a possible deadlock when running UNINSTALL PLUGIN rpl_semi_sync_master and updating in parallel. Fixed by releasing the internal Delegate lock before unlock the plugins.
-
He Zhenxing authored
Add $basedir/lib/plugin to the search paths for semisync plugins.
-
- 03 Dec, 2009 6 commits
-
-
V Narayanan authored
When a .CSV file for table in the CSV engine contains \X characters as part of unquoted fields, e.g. 2,naraya\nan \n is not interpreted as a new line (it is however interpreted as a newline in a quoted field). The old algorithm copied the entire value for a unquoted field without parsing the \X characters. The new algorithm adds the capability to handle \X characters in the unquoted fields of a .CSV file.
-
V Narayanan authored
Introduce a flag that will enable the REPLACE command to work correctly with an underlying storage engine that does not report unique key conflicts in the ascending order.
-
Konstantin Osipov authored
-
V Narayanan authored
The attached patch adds a method handlerton::fill_is_table that can be used instead of having to create specific handlerton::fill_*_table methods.
-
Marc Alff authored
-
Alexander Nozdrin authored
-
- 02 Dec, 2009 6 commits
-
-
Marc Alff authored
-
Alexander Nozdrin authored
-
Alexander Nozdrin authored
-
Alexander Nozdrin authored
Conflicts: - sql/sql_yacc.yy
-
Tor Didriksen authored
Use safe output formats for strings that are not null terminated.
-
Mikael Ronstrom authored
-
- 01 Dec, 2009 1 commit
-
-
Evgeny Potemkin authored
Constant expressions in WHERE/HAVING/ON clauses aren't cached and evaluated for each row. This causes slowdown of query execution especially if constant UDF/SP function are used. Now WHERE/HAVING/ON expressions are analyzed in the top-bottom direction with help of the compile function. When analyzer meets a constant item it sets a flag for the tree transformer to cache the item and doesn't allow tree walker to go deeper. Thus, the topmost item of a constant expression if cached. This is done after all other optimizations were applied to WHERE/HAVING/ON expressions A helper function called cache_const_exprs is added to the JOIN class. It calls compile method with caching analyzer and transformer on WHERE, HAVING, ON expressions if they're present. The cache_const_expr_analyzer and cache_const_expr_transformer functions are added to the Item class. The first one check if the item can be cached and the second caches it if so. A new Item_cache_datetime class is derived from the Item_cache class. It caches both int and string values of the underlying item independently to avoid DATETIME aware int-to-string conversion. Thus it completely relies on the ability of the underlying item to correctly convert DATETIME value from int to string and vice versa.
-