Loading .bzrignore +8 −8 Original line number Diff line number Diff line Loading @@ -254,11 +254,14 @@ bkpush.log bkpush.log* build.log build_tags.sh client/decimal.c client/insert_test client/log_event.cc client/log_event.h client/mf_iocache.c client/mf_iocache.cc client/my_decimal.cc client/my_decimal.h client/mysql client/mysqladmin client/mysqladmin.c Loading Loading @@ -328,9 +331,12 @@ help.h include/my_config.h include/my_global.h include/mysql_version.h include/mysqld_ername.h include/mysqld_error.h include/readline include/readline/*.h include/readline/readline.h include/sql_state.h include/widec.h innobase/autom4te-2.53.cache/* innobase/autom4te-2.53.cache/output.0 Loading Loading @@ -432,6 +438,7 @@ libmysqld/log_event.cc libmysqld/md5.c libmysqld/mf_iocache.cc libmysqld/mini_client.cc libmysqld/my_decimal.cc libmysqld/my_time.c libmysqld/net_pkg.cc libmysqld/net_serv.cc Loading Loading @@ -985,6 +992,7 @@ support-files/mysql-3.23.29-gamma.spec support-files/mysql-log-rotate support-files/mysql.server support-files/mysql.spec support-files/ndb-config-2-node.ini tags test/ndbapi/bank/bankCreator test/ndbapi/bank/bankMakeGL Loading Loading @@ -1052,11 +1060,3 @@ vio/test-ssl vio/test-sslclient vio/test-sslserver vio/viotest-ssl include/mysqld_ername.h include/mysqld_error.h include/sql_state.h support-files/ndb-config-2-node.ini client/decimal.c client/my_decimal.cc client/my_decimal.h libmysqld/my_decimal.cc sql/ha_ndbcluster.cc +87 −87 Original line number Diff line number Diff line Loading @@ -4841,7 +4841,7 @@ uint ndb_get_commitcount(THD* thd, char* dbname, char* tabname, if (ndb_cache_check_time > 0) { // Use cached commit_count from share /* Use cached commit_count from share */ char name[FN_REFLEN]; NDB_SHARE *share; (void)strxnmov(name, FN_REFLEN, Loading @@ -4861,7 +4861,7 @@ uint ndb_get_commitcount(THD* thd, char* dbname, char* tabname, DBUG_RETURN(0); } // Get commit_count from NDB /* Get commit_count from NDB */ Ndb *ndb; if (!(ndb= check_ndb_in_thd(thd))) DBUG_RETURN(1); Loading Loading @@ -4925,14 +4925,14 @@ ndbcluster_cache_retrieval_allowed(THD* thd, if (ndb_get_commitcount(thd, dbname, tabname, &commit_count)) { *engine_data+= 1; // invalidate *engine_data+= 1; /* invalidate */ DBUG_RETURN(FALSE); } DBUG_PRINT("info", ("*engine_data=%llu, commit_count=%llu", *engine_data, commit_count)); if (*engine_data != commit_count) { *engine_data= commit_count; // invalidate *engine_data= commit_count; /* invalidate */ DBUG_PRINT("exit",("Do not use cache, commit_count has changed")); DBUG_RETURN(FALSE); } Loading Loading @@ -4978,7 +4978,6 @@ ha_ndbcluster::register_query_cache_table(THD* thd, if (!is_autocommit) DBUG_RETURN(FALSE); Uint64 commit_count; if (ndb_get_commitcount(thd, m_dbname, m_tabname, &commit_count)) { Loading @@ -4992,6 +4991,7 @@ ha_ndbcluster::register_query_cache_table(THD* thd, DBUG_RETURN(TRUE); } /* Handling the shared NDB_SHARE structure that is needed to provide table locking. Loading Loading @@ -5648,7 +5648,7 @@ ha_ndbcluster::update_table_comment( extern "C" pthread_handler_decl(ndb_util_thread_func, arg __attribute__((unused))) { THD *thd; // needs to be first for thread_stack THD *thd; /* needs to be first for thread_stack */ int error= 0; struct timespec abstime; Loading @@ -5656,13 +5656,13 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, DBUG_ENTER("ndb_util_thread"); DBUG_PRINT("enter", ("ndb_cache_check_time: %d", ndb_cache_check_time)); thd= new THD; // note that contructor of THD uses DBUG_ ! thd= new THD; /* note that contructor of THD uses DBUG_ */ THD_CHECK_SENTRY(thd); pthread_detach_this_thread(); ndb_util_thread= pthread_self(); thd->thread_stack = (char*)&thd; // remember where our stack is thd->thread_stack= (char*)&thd; /* remember where our stack is */ if (thd->store_globals()) { thd->cleanup(); Loading @@ -5685,7 +5685,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ndb_cache_check_time)); if (abort_loop) break; // Shutting down server break; /* Shutting down server */ if (ndb_cache_check_time == 0) { Loading @@ -5693,32 +5693,31 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, continue; } // Set new time to wake up /* Set new time to wake up */ set_timespec(abstime, ndb_cache_check_time); // Lock mutex and fill list with pointers to all open tables /* Lock mutex and fill list with pointers to all open tables */ NDB_SHARE *share; pthread_mutex_lock(&ndbcluster_mutex); for (uint i= 0; i < ndbcluster_open_tables.records; i++) { share= (NDB_SHARE *)hash_element(&ndbcluster_open_tables, i); share->use_count++; // Make sure the table can't be closed share->use_count++; /* Make sure the table can't be closed */ DBUG_PRINT("ndb_util_thread", ("Found open table[%d]: %s, use_count: %d", i, share->table_name, share->use_count)); // Store pointer to table /* Store pointer to table */ util_open_tables.push_back(share); } pthread_mutex_unlock(&ndbcluster_mutex); // Iterate through the open files list /* Iterate through the open files list */ List_iterator_fast<NDB_SHARE> it(util_open_tables); while (share= it++) { // Split tab- and dbname /* Split tab- and dbname */ char buf[FN_REFLEN]; char *tabname, *db; uint length= dirname_length(share->table_name); Loading @@ -5730,10 +5729,11 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ("Fetching commit count for: %s, db: %s, tab: %s", share->table_name, db, tabname)); // Contact NDB to get commit count for table /* Contact NDB to get commit count for table */ g_ndb->setDatabaseName(db); struct Ndb_statistics stat;; if(ndb_get_table_statistics(g_ndb, tabname, &stat) == 0){ if(ndb_get_table_statistics(g_ndb, tabname, &stat) == 0) { DBUG_PRINT("ndb_util_thread", ("Table: %s, rows: %llu, commit_count: %llu", share->table_name, stat.row_count, stat.commit_count)); Loading @@ -5744,13 +5744,13 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, DBUG_PRINT("ndb_util_thread", ("Error: Could not get commit count for table %s", share->table_name)); share->commit_count++; // Invalidate share->commit_count++; /* Invalidate */ } // Decrease the use count and possibly free share /* Decrease the use count and possibly free share */ free_share(share); } // Clear the list of open tables /* Clear the list of open tables */ util_open_tables.empty(); } Loading sql/sql_yacc.yy +1 −1 Original line number Diff line number Diff line Loading @@ -4817,7 +4817,7 @@ in_sum_expr: cast_type: BINARY opt_len { $$=ITEM_CAST_CHAR; Lex->charset= &my_charset_bin; Lex->dec= 0; } | CHAR_SYM opt_len opt_binary { $$=ITEM_CAST_CHAR; Lex->dec= 0; } | NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; } | NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; Lex->dec=0; } | SIGNED_SYM { $$=ITEM_CAST_SIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } | SIGNED_SYM INT_SYM { $$=ITEM_CAST_SIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } | UNSIGNED { $$=ITEM_CAST_UNSIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } Loading Loading
.bzrignore +8 −8 Original line number Diff line number Diff line Loading @@ -254,11 +254,14 @@ bkpush.log bkpush.log* build.log build_tags.sh client/decimal.c client/insert_test client/log_event.cc client/log_event.h client/mf_iocache.c client/mf_iocache.cc client/my_decimal.cc client/my_decimal.h client/mysql client/mysqladmin client/mysqladmin.c Loading Loading @@ -328,9 +331,12 @@ help.h include/my_config.h include/my_global.h include/mysql_version.h include/mysqld_ername.h include/mysqld_error.h include/readline include/readline/*.h include/readline/readline.h include/sql_state.h include/widec.h innobase/autom4te-2.53.cache/* innobase/autom4te-2.53.cache/output.0 Loading Loading @@ -432,6 +438,7 @@ libmysqld/log_event.cc libmysqld/md5.c libmysqld/mf_iocache.cc libmysqld/mini_client.cc libmysqld/my_decimal.cc libmysqld/my_time.c libmysqld/net_pkg.cc libmysqld/net_serv.cc Loading Loading @@ -985,6 +992,7 @@ support-files/mysql-3.23.29-gamma.spec support-files/mysql-log-rotate support-files/mysql.server support-files/mysql.spec support-files/ndb-config-2-node.ini tags test/ndbapi/bank/bankCreator test/ndbapi/bank/bankMakeGL Loading Loading @@ -1052,11 +1060,3 @@ vio/test-ssl vio/test-sslclient vio/test-sslserver vio/viotest-ssl include/mysqld_ername.h include/mysqld_error.h include/sql_state.h support-files/ndb-config-2-node.ini client/decimal.c client/my_decimal.cc client/my_decimal.h libmysqld/my_decimal.cc
sql/ha_ndbcluster.cc +87 −87 Original line number Diff line number Diff line Loading @@ -4841,7 +4841,7 @@ uint ndb_get_commitcount(THD* thd, char* dbname, char* tabname, if (ndb_cache_check_time > 0) { // Use cached commit_count from share /* Use cached commit_count from share */ char name[FN_REFLEN]; NDB_SHARE *share; (void)strxnmov(name, FN_REFLEN, Loading @@ -4861,7 +4861,7 @@ uint ndb_get_commitcount(THD* thd, char* dbname, char* tabname, DBUG_RETURN(0); } // Get commit_count from NDB /* Get commit_count from NDB */ Ndb *ndb; if (!(ndb= check_ndb_in_thd(thd))) DBUG_RETURN(1); Loading Loading @@ -4925,14 +4925,14 @@ ndbcluster_cache_retrieval_allowed(THD* thd, if (ndb_get_commitcount(thd, dbname, tabname, &commit_count)) { *engine_data+= 1; // invalidate *engine_data+= 1; /* invalidate */ DBUG_RETURN(FALSE); } DBUG_PRINT("info", ("*engine_data=%llu, commit_count=%llu", *engine_data, commit_count)); if (*engine_data != commit_count) { *engine_data= commit_count; // invalidate *engine_data= commit_count; /* invalidate */ DBUG_PRINT("exit",("Do not use cache, commit_count has changed")); DBUG_RETURN(FALSE); } Loading Loading @@ -4978,7 +4978,6 @@ ha_ndbcluster::register_query_cache_table(THD* thd, if (!is_autocommit) DBUG_RETURN(FALSE); Uint64 commit_count; if (ndb_get_commitcount(thd, m_dbname, m_tabname, &commit_count)) { Loading @@ -4992,6 +4991,7 @@ ha_ndbcluster::register_query_cache_table(THD* thd, DBUG_RETURN(TRUE); } /* Handling the shared NDB_SHARE structure that is needed to provide table locking. Loading Loading @@ -5648,7 +5648,7 @@ ha_ndbcluster::update_table_comment( extern "C" pthread_handler_decl(ndb_util_thread_func, arg __attribute__((unused))) { THD *thd; // needs to be first for thread_stack THD *thd; /* needs to be first for thread_stack */ int error= 0; struct timespec abstime; Loading @@ -5656,13 +5656,13 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, DBUG_ENTER("ndb_util_thread"); DBUG_PRINT("enter", ("ndb_cache_check_time: %d", ndb_cache_check_time)); thd= new THD; // note that contructor of THD uses DBUG_ ! thd= new THD; /* note that contructor of THD uses DBUG_ */ THD_CHECK_SENTRY(thd); pthread_detach_this_thread(); ndb_util_thread= pthread_self(); thd->thread_stack = (char*)&thd; // remember where our stack is thd->thread_stack= (char*)&thd; /* remember where our stack is */ if (thd->store_globals()) { thd->cleanup(); Loading @@ -5685,7 +5685,7 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ndb_cache_check_time)); if (abort_loop) break; // Shutting down server break; /* Shutting down server */ if (ndb_cache_check_time == 0) { Loading @@ -5693,32 +5693,31 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, continue; } // Set new time to wake up /* Set new time to wake up */ set_timespec(abstime, ndb_cache_check_time); // Lock mutex and fill list with pointers to all open tables /* Lock mutex and fill list with pointers to all open tables */ NDB_SHARE *share; pthread_mutex_lock(&ndbcluster_mutex); for (uint i= 0; i < ndbcluster_open_tables.records; i++) { share= (NDB_SHARE *)hash_element(&ndbcluster_open_tables, i); share->use_count++; // Make sure the table can't be closed share->use_count++; /* Make sure the table can't be closed */ DBUG_PRINT("ndb_util_thread", ("Found open table[%d]: %s, use_count: %d", i, share->table_name, share->use_count)); // Store pointer to table /* Store pointer to table */ util_open_tables.push_back(share); } pthread_mutex_unlock(&ndbcluster_mutex); // Iterate through the open files list /* Iterate through the open files list */ List_iterator_fast<NDB_SHARE> it(util_open_tables); while (share= it++) { // Split tab- and dbname /* Split tab- and dbname */ char buf[FN_REFLEN]; char *tabname, *db; uint length= dirname_length(share->table_name); Loading @@ -5730,10 +5729,11 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, ("Fetching commit count for: %s, db: %s, tab: %s", share->table_name, db, tabname)); // Contact NDB to get commit count for table /* Contact NDB to get commit count for table */ g_ndb->setDatabaseName(db); struct Ndb_statistics stat;; if(ndb_get_table_statistics(g_ndb, tabname, &stat) == 0){ if(ndb_get_table_statistics(g_ndb, tabname, &stat) == 0) { DBUG_PRINT("ndb_util_thread", ("Table: %s, rows: %llu, commit_count: %llu", share->table_name, stat.row_count, stat.commit_count)); Loading @@ -5744,13 +5744,13 @@ extern "C" pthread_handler_decl(ndb_util_thread_func, DBUG_PRINT("ndb_util_thread", ("Error: Could not get commit count for table %s", share->table_name)); share->commit_count++; // Invalidate share->commit_count++; /* Invalidate */ } // Decrease the use count and possibly free share /* Decrease the use count and possibly free share */ free_share(share); } // Clear the list of open tables /* Clear the list of open tables */ util_open_tables.empty(); } Loading
sql/sql_yacc.yy +1 −1 Original line number Diff line number Diff line Loading @@ -4817,7 +4817,7 @@ in_sum_expr: cast_type: BINARY opt_len { $$=ITEM_CAST_CHAR; Lex->charset= &my_charset_bin; Lex->dec= 0; } | CHAR_SYM opt_len opt_binary { $$=ITEM_CAST_CHAR; Lex->dec= 0; } | NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; } | NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; Lex->dec=0; } | SIGNED_SYM { $$=ITEM_CAST_SIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } | SIGNED_SYM INT_SYM { $$=ITEM_CAST_SIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } | UNSIGNED { $$=ITEM_CAST_UNSIGNED_INT; Lex->charset= NULL; Lex->dec=Lex->length= (char*)0; } Loading