Commit bfc0d5ca authored by monty@donna.mysql.com's avatar monty@donna.mysql.com

Fixed problem with concurrent inserts and read-previous

Fix for BSDI 4.0
parent 0ccc30f4
This diff is collapsed.
...@@ -746,7 +746,7 @@ case $SYSTEM_TYPE in ...@@ -746,7 +746,7 @@ case $SYSTEM_TYPE in
;; ;;
*bsdi*) *bsdi*)
echo "Adding fix for 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) AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_t)
;; ;;
*sgi-irix6*) *sgi-irix6*)
......
...@@ -54,7 +54,7 @@ int mi_rprev(MI_INFO *info, byte *buf, int inx) ...@@ -54,7 +54,7 @@ int mi_rprev(MI_INFO *info, byte *buf, int inx)
if (!error) 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 */ /* Skip rows that are inserted by other threads since we got a lock */
if ((error=_mi_search_next(info,share->keyinfo+inx,info->lastkey, 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, ...@@ -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 */ (void) strmov(pos,ext); /* Don't convert extension */
} }
/* Purify gives a lot of UMR errors when using realpath */ /* 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) if (flag & 16)
{ {
struct stat stat_buff; struct stat stat_buff;
......
...@@ -112,7 +112,7 @@ handler *get_new_handler(TABLE *table, enum db_type db_type) ...@@ -112,7 +112,7 @@ handler *get_new_handler(TABLE *table, enum db_type db_type)
return new ha_berkeley(table); return new ha_berkeley(table);
#endif #endif
#ifdef HAVE_INNOBASE_DB #ifdef HAVE_INNOBASE_DB
case DB_TYPE_INNOBASE_DB: case DB_TYPE_INNOBASE:
return new ha_innobase(table); return new ha_innobase(table);
#endif #endif
case DB_TYPE_HEAP: 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