mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
dddc20d9d1
Made a some new buffers thread specific and changeable. Resize of key_buffer. AUTO_COMMIT -> AUTOCOMMIT Fixed mutex bug in DROP DATABASE Fixed bug when using auto_increment as second part of a key where first part could include NULL. Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers. Don't write message to error log when slave reconnects becasue of timeout. Fixed possible update problem when using DELETE/UPDATE on small tables (In some cases we used index even if table scanning would be better) A lot of minior code cleanups
50 lines
777 B
Text
50 lines
777 B
Text
/***********************************************************************
|
|
Memory primitives
|
|
|
|
(c) 1994, 1995 Innobase Oy
|
|
|
|
Created 5/30/1994 Heikki Tuuri
|
|
************************************************************************/
|
|
|
|
UNIV_INLINE
|
|
void*
|
|
ut_memcpy(void* dest, void* sour, ulint n)
|
|
{
|
|
return(memcpy(dest, sour, n));
|
|
}
|
|
|
|
UNIV_INLINE
|
|
void*
|
|
ut_memmove(void* dest, void* sour, ulint n)
|
|
{
|
|
return(memmove(dest, sour, n));
|
|
}
|
|
|
|
UNIV_INLINE
|
|
int
|
|
ut_memcmp(void* str1, void* str2, ulint n)
|
|
{
|
|
return(memcmp(str1, str2, n));
|
|
}
|
|
|
|
UNIV_INLINE
|
|
char*
|
|
ut_strcpy(char* dest, char* sour)
|
|
{
|
|
return(strcpy(dest, sour));
|
|
}
|
|
|
|
UNIV_INLINE
|
|
ulint
|
|
ut_strlen(const char* str)
|
|
{
|
|
return(strlen(str));
|
|
}
|
|
|
|
UNIV_INLINE
|
|
int
|
|
ut_strcmp(void* str1, void* str2)
|
|
{
|
|
return(strcmp((char*)str1, (char*)str2));
|
|
}
|
|
|