Commit becd1867 authored by unknown's avatar unknown

Fixed problem with concurrent inserts and read-previous

Fix for BSDI 4.0


Docs/manual.texi:
  Added MySQL AB information
configure.in:
  Fix for BSDI 4.0
myisam/mi_rprev.c:
  Fixed problem with concurrent inserts and read-previous
mysys/mf_format.c:
  Fix for BSDI 4.0
sql/handler.cc:
  Fixed type
parent 46ad1b88
This diff is collapsed.
......@@ -746,7 +746,7 @@ case $SYSTEM_TYPE in
;;
*bsdi*)
echo "Adding fix for BSDI"
CFLAGS="$CFLAGS -D__BSD__"
CFLAGS="$CFLAGS -D__BSD__ -DHAVE_BROKEN_REALPATH"
AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_t)
;;
*sgi-irix6*)
......
......@@ -54,7 +54,7 @@ int mi_rprev(MI_INFO *info, byte *buf, int inx)
if (!error)
{
while (info->lastpos > info->state->data_file_length)
while (info->lastpos >= info->state->data_file_length)
{
/* Skip rows that are inserted by other threads since we got a lock */
if ((error=_mi_search_next(info,share->keyinfo+inx,info->lastkey,
......
......@@ -110,7 +110,7 @@ my_string fn_format(my_string to, const char *name, const char *dsk,
(void) strmov(pos,ext); /* Don't convert extension */
}
/* Purify gives a lot of UMR errors when using realpath */
#if defined(HAVE_REALPATH) && !defined(HAVE_purify)
#if defined(HAVE_REALPATH) && !defined(HAVE_purify) && !defined(HAVE_BROKEN_REALPATH)
if (flag & 16)
{
struct stat stat_buff;
......
......@@ -112,7 +112,7 @@ handler *get_new_handler(TABLE *table, enum db_type db_type)
return new ha_berkeley(table);
#endif
#ifdef HAVE_INNOBASE_DB
case DB_TYPE_INNOBASE_DB:
case DB_TYPE_INNOBASE:
return new ha_innobase(table);
#endif
case DB_TYPE_HEAP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment