mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge mysql.com:/usr/home/ram/work/mysql-4.0
into mysql.com:/usr/home/ram/work/mysql-4.1 myisam/mi_search.c: Auto merged include/m_string.h: SCCS merged
This commit is contained in:
@ -122,15 +122,6 @@ extern void bmove_align(gptr dst,const gptr src,uint len);
|
|||||||
#define bmove512(A,B,C) memcpy(A,B,C)
|
#define bmove512(A,B,C) memcpy(A,B,C)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_purify
|
|
||||||
#define memcpy_overlap(A,B,C) \
|
|
||||||
DBUG_ASSERT((A) <= (B) || ((B)+(C)) <= (A)); \
|
|
||||||
bmove((byte*) (A),(byte*) (B),(size_t) (C));
|
|
||||||
#else
|
|
||||||
#define memcpy_overlap(A,B,C) memcpy((A), (B), (C))
|
|
||||||
#endif /* HAVE_purify */
|
|
||||||
|
|
||||||
|
|
||||||
/* Prototypes for string functions */
|
/* Prototypes for string functions */
|
||||||
|
|
||||||
#if !defined(bfill) && !defined(HAVE_BFILL)
|
#if !defined(bfill) && !defined(HAVE_BFILL)
|
||||||
|
@ -978,7 +978,7 @@ uint _mi_get_binary_pack_key(register MI_KEYDEF *keyinfo, uint nod_flag,
|
|||||||
}
|
}
|
||||||
DBUG_PRINT("info",("key: %lx from: %lx length: %u",
|
DBUG_PRINT("info",("key: %lx from: %lx length: %u",
|
||||||
(long) key, (long) from, length));
|
(long) key, (long) from, length));
|
||||||
memcpy_overlap((byte*) key, (byte*) from, (size_t) length);
|
memmove((byte*) key, (byte*) from, (size_t) length);
|
||||||
key+=length;
|
key+=length;
|
||||||
from+=length;
|
from+=length;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user