diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-10-09 16:43:59 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-10-09 16:43:59 +0200 |
commit | 16c4b3c68b06653592a9500050ad977a38f4ebae (patch) | |
tree | 9c26da00fe119d92efd3792987c3790d7d0fb409 | |
parent | f41a41fd912af97bc2703d3fcec8d1a294bef023 (diff) | |
download | mariadb-git-16c4b3c68b06653592a9500050ad977a38f4ebae.tar.gz |
fixes for buildbot:mariadb-5.5.46
* OSX (mysqlimport freeing unallocated memory)
* Windows (didn't compile MSI)
* fulltest2 (innodb crashes in --embedded --big)
-rw-r--r-- | client/mysqlimport.c | 7 | ||||
-rw-r--r-- | mysql-test/disabled.def | 3 | ||||
-rw-r--r-- | storage/xtradb/include/row0purge.h | 1 | ||||
-rw-r--r-- | storage/xtradb/row/row0purge.c | 1 | ||||
-rw-r--r-- | win/packaging/ca/CustomAction.cpp | 2 |
5 files changed, 11 insertions, 3 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index 1f047fdf4b3..a22774bc684 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -36,7 +36,7 @@ /* Global Thread counter */ -uint counter; +uint counter= 0; pthread_mutex_t counter_mutex; pthread_cond_t count_threshhold; @@ -482,6 +482,11 @@ static void safe_exit(int error, MYSQL *mysql) { if (error && ignore_errors) return; + + /* in multi-threaded mode protect from concurrent safe_exit's */ + if (counter) + pthread_mutex_lock(&counter_mutex); + if (mysql) mysql_close(mysql); diff --git a/mysql-test/disabled.def b/mysql-test/disabled.def index 6dc3066e374..310890605ff 100644 --- a/mysql-test/disabled.def +++ b/mysql-test/disabled.def @@ -11,9 +11,8 @@ ############################################################################## tablespace : disabled in MariaDB (no TABLESPACE table attribute) events_time_zone : Test is not predictable as it depends on precise timing. -lowercase_table3 : Bug#11762269 2010-06-30 alik main.lowercase_table3 on Mac OSX read_many_rows_innodb : Bug#11748886 2010-11-15 mattiasj report already exists -archive-big : Bug#11817185 2011-03-10 Anitha Disabled since this leads to timeout on Solaris Sparc log_tables-big : Bug#11756699 2010-11-15 mattiasj report already exists mysql_embedded : Bug#12561297 2011-05-14 Anitha Dependent on PB2 changes - eventum#41836 file_contents : MDEV-6526 these files are not installed anymore +lowercase_fs_on : lower_case_table_names=0 is not an error until 10.1 diff --git a/storage/xtradb/include/row0purge.h b/storage/xtradb/include/row0purge.h index 9a638c80493..64353bc8434 100644 --- a/storage/xtradb/include/row0purge.h +++ b/storage/xtradb/include/row0purge.h @@ -118,6 +118,7 @@ references to the clustered index record - one via the ref member, and the other via the persistent cursor. These two references must match each other if the found_clust flag is set. @return true if the persistent cursor is consistent with the ref member.*/ +UNIV_INTERN ibool row_purge_validate_pcur(purge_node_t* node); #endif /* UNIV_DEBUG */ diff --git a/storage/xtradb/row/row0purge.c b/storage/xtradb/row/row0purge.c index 9018582f5d6..1e87016bc5e 100644 --- a/storage/xtradb/row/row0purge.c +++ b/storage/xtradb/row/row0purge.c @@ -826,6 +826,7 @@ other via the persistent cursor. These two references must match each other if the found_clust flag is set. @return true if the stored copy of persistent cursor is consistent with the ref member.*/ +UNIV_INTERN ibool row_purge_validate_pcur( purge_node_t* node) diff --git a/win/packaging/ca/CustomAction.cpp b/win/packaging/ca/CustomAction.cpp index 17bfca1debb..3cb8520b65d 100644 --- a/win/packaging/ca/CustomAction.cpp +++ b/win/packaging/ca/CustomAction.cpp @@ -17,6 +17,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define UNICODE #endif +#undef NOMINMAX + #include <winsock2.h> #include <windows.h> #include <winreg.h> |