Loading libmysqld/examples/test-run +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ top_builddir=../.. mysql_test_dir=$top_builddir/mysql-test examples=$top_builddir/libmysqld/examples mysqltest=$examples/mysqltest mysqltest=$examples/mysqltest_embedded datadir=$mysql_test_dir/var/master-data test_data_dir=test gdb=0 Loading libmysqld/lib_sql.cc +4 −0 Original line number Diff line number Diff line Loading @@ -584,6 +584,7 @@ void *create_embedded_thd(int client_flag) thd->set_time(); thd->init_for_queries(); thd->client_capabilities= client_flag; thd->real_id= (pthread_t) thd; thd->db= NULL; thd->db_length= 0; Loading Loading @@ -1028,6 +1029,9 @@ void Protocol_simple::prepare_for_resend() MYSQL_DATA *data= thd->cur_data; DBUG_ENTER("send_data"); if (!thd->mysql) // bootstrap file handling DBUG_VOID_RETURN; data->rows++; if (!(cur= (MYSQL_ROWS *)alloc_root(alloc, sizeof(MYSQL_ROWS)+(field_count + 1) * sizeof(char *)))) { Loading sql/item_func.cc +4 −0 Original line number Diff line number Diff line Loading @@ -3347,7 +3347,11 @@ longlong Item_func_release_lock::val_int() } else { #ifdef EMBEDDED_LIBRARY if (ull->locked && pthread_equal(current_thd->real_id,ull->thread)) #else if (ull->locked && pthread_equal(pthread_self(),ull->thread)) #endif { result=1; // Release is ok item_user_lock_release(ull); Loading Loading
libmysqld/examples/test-run +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ top_builddir=../.. mysql_test_dir=$top_builddir/mysql-test examples=$top_builddir/libmysqld/examples mysqltest=$examples/mysqltest mysqltest=$examples/mysqltest_embedded datadir=$mysql_test_dir/var/master-data test_data_dir=test gdb=0 Loading
libmysqld/lib_sql.cc +4 −0 Original line number Diff line number Diff line Loading @@ -584,6 +584,7 @@ void *create_embedded_thd(int client_flag) thd->set_time(); thd->init_for_queries(); thd->client_capabilities= client_flag; thd->real_id= (pthread_t) thd; thd->db= NULL; thd->db_length= 0; Loading Loading @@ -1028,6 +1029,9 @@ void Protocol_simple::prepare_for_resend() MYSQL_DATA *data= thd->cur_data; DBUG_ENTER("send_data"); if (!thd->mysql) // bootstrap file handling DBUG_VOID_RETURN; data->rows++; if (!(cur= (MYSQL_ROWS *)alloc_root(alloc, sizeof(MYSQL_ROWS)+(field_count + 1) * sizeof(char *)))) { Loading
sql/item_func.cc +4 −0 Original line number Diff line number Diff line Loading @@ -3347,7 +3347,11 @@ longlong Item_func_release_lock::val_int() } else { #ifdef EMBEDDED_LIBRARY if (ull->locked && pthread_equal(current_thd->real_id,ull->thread)) #else if (ull->locked && pthread_equal(pthread_self(),ull->thread)) #endif { result=1; // Release is ok item_user_lock_release(ull); Loading