mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed compile errors on windows
VC++Files/test1/mysql_thr.c: Fixed typo VC++Files/thr_test/thr_test.c: Fixed typo sql/log_event.cc: Removed compiler warning Fixed compile error on windows
This commit is contained in:
@ -33,7 +33,7 @@ typedef CRITICAL_SECTION pthread_mutex_t;
|
|||||||
#define pthread_mutex_lock(A) (EnterCriticalSection(A),0)
|
#define pthread_mutex_lock(A) (EnterCriticalSection(A),0)
|
||||||
#define pthread_mutex_unlock(A) LeaveCriticalSection(A)
|
#define pthread_mutex_unlock(A) LeaveCriticalSection(A)
|
||||||
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
|
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
|
||||||
#define pthread_handler_t unsigned __cdecl *
|
#define pthread_handler_t unsigned __cdecl
|
||||||
typedef unsigned (__cdecl *pthread_handler)(void *);
|
typedef unsigned (__cdecl *pthread_handler)(void *);
|
||||||
#define pthread_self() GetCurrentThread()
|
#define pthread_self() GetCurrentThread()
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ typedef CRITICAL_SECTION pthread_mutex_t;
|
|||||||
#define pthread_mutex_lock(A) (EnterCriticalSection(A),0)
|
#define pthread_mutex_lock(A) (EnterCriticalSection(A),0)
|
||||||
#define pthread_mutex_unlock(A) LeaveCriticalSection(A)
|
#define pthread_mutex_unlock(A) LeaveCriticalSection(A)
|
||||||
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
|
#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
|
||||||
#define pthread_handler_t unsigned __cdecl *
|
#define pthread_handler_t unsigned __cdecl
|
||||||
typedef unsigned (__cdecl *pthread_handler)(void *);
|
typedef unsigned (__cdecl *pthread_handler)(void *);
|
||||||
#define pthread_self() GetCurrentThread()
|
#define pthread_self() GetCurrentThread()
|
||||||
|
|
||||||
|
@ -1160,7 +1160,7 @@ Query_log_event::Query_log_event(THD* thd_arg, const char* query_arg,
|
|||||||
But it's likely that we don't want to use 32 bits for 3 bits; in the future
|
But it's likely that we don't want to use 32 bits for 3 bits; in the future
|
||||||
we will probably want to reclaim the 29 bits. So we need the &.
|
we will probably want to reclaim the 29 bits. So we need the &.
|
||||||
*/
|
*/
|
||||||
flags2= thd_arg->options & OPTIONS_WRITTEN_TO_BIN_LOG;
|
flags2= (uint32) (thd_arg->options & OPTIONS_WRITTEN_TO_BIN_LOG);
|
||||||
DBUG_ASSERT(thd->variables.character_set_client->number < 256*256);
|
DBUG_ASSERT(thd->variables.character_set_client->number < 256*256);
|
||||||
DBUG_ASSERT(thd->variables.collation_connection->number < 256*256);
|
DBUG_ASSERT(thd->variables.collation_connection->number < 256*256);
|
||||||
DBUG_ASSERT(thd->variables.collation_server->number < 256*256);
|
DBUG_ASSERT(thd->variables.collation_server->number < 256*256);
|
||||||
@ -2984,9 +2984,8 @@ Rotate_log_event::Rotate_log_event(THD* thd_arg,
|
|||||||
llstr(pos_arg, buff), flags));
|
llstr(pos_arg, buff), flags));
|
||||||
#endif
|
#endif
|
||||||
if (flags & DUP_NAME)
|
if (flags & DUP_NAME)
|
||||||
new_log_ident= my_strdup_with_length(new_log_ident_arg,
|
new_log_ident= my_strdup_with_length((const byte*) new_log_ident_arg,
|
||||||
ident_len,
|
ident_len, MYF(MY_WME));
|
||||||
MYF(MY_WME));
|
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user