Commit a94ba10f authored by monty@donna.mysql.fi's avatar monty@donna.mysql.fi
Browse files

Fix for BDB and LOCK TABLES

parent 3876d83e
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -22511,6 +22511,9 @@ locks while the thread is waiting for the @code{WRITE} lock. You should only
use @code{LOW_PRIORITY WRITE} locks if you are sure that there will
eventually be a time when no threads will have a @code{READ} lock.
@code{LOCK TABLES} and @code{UNLOCK TABLES} both commits any active
transactions.
When you use @code{LOCK TABLES}, you must lock all tables that you are
going to use and you must use the same alias that you are going to use
in your queries!  If you are using a table multiple times in a query
@@ -43940,6 +43943,8 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.38
@itemize @bullet
@item
Lots of portability fixes for InnoDB.
@item
Changed optimizer so that queries like
@code{SELECT * FROM table_name,table_name2 ... ORDER BY key_part1 LIMIT #}
will use index on @code{key_part1} instead of @code{filesort}.
@@ -43947,13 +43952,15 @@ will use index on @code{key_part1} instead of @code{filesort}.
Fixed bug when doing
@code{LOCK TABLE to_table WRITE,...; INSERT INTO to_table... SELECT ...}
when to_table was empty.
@item
Fixed bug with @code{LOCK TABLE} and BDB tables.
@end itemize
@node News-3.23.37, News-3.23.36, News-3.23.38, News-3.23.x
@appendixsubsec Changes in release 3.23.37
@itemize @bullet
@item
Fixed a bug when using MATCH in HAVING clause.
Fixed a bug when using @code{MATCH} in @code{HAVING} clause.
@item
Fixed a bug when using @code{HEAP} tables with @code{LIKE}.
@item

innobase/ib_config.h

deleted100644 → 0
+0 −31
Original line number Diff line number Diff line
/* ib_config.h.  Generated automatically by configure.  */
/* ib_config.h.in.  Generated automatically from configure.in by autoheader.  */

/* Define as __inline if that's what the C compiler calls it.  */
/* #undef inline */

/* Define if your processor stores words with the most significant
   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
/* #undef WORDS_BIGENDIAN */

/* The number of bytes in a int.  */
#define SIZEOF_INT 4

/* Define if you have the sched_yield function.  */
#define HAVE_SCHED_YIELD 1

/* Define if you have the <aio.h> header file.  */
#define HAVE_AIO_H 1

/* Define if you have the <sched.h> header file.  */
#define HAVE_SCHED_H 1

/* Name of package */
#define PACKAGE "ib"

/* Version number of package */
#define VERSION "0.90"

/* No inlining because gcc broken on HP-UX */
/* #undef UNIV_MUST_NOT_INLINE */

innobase/ib_config.h.in

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
/* ib_config.h.in.  Generated automatically from configure.in by autoheader.  */

/* Define as __inline if that's what the C compiler calls it.  */
#undef inline

/* Define if your processor stores words with the most significant
   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
#undef WORDS_BIGENDIAN

/* The number of bytes in a int.  */
#undef SIZEOF_INT

/* Define if you have the sched_yield function.  */
#undef HAVE_SCHED_YIELD

/* Define if you have the <aio.h> header file.  */
#undef HAVE_AIO_H

/* Define if you have the <sched.h> header file.  */
#undef HAVE_SCHED_H

/* Name of package */
#undef PACKAGE

/* Version number of package */
#undef VERSION

/* No inlining because gcc broken on HP-UX */
#undef UNIV_MUST_NOT_INLINE
+2 −3
Original line number Diff line number Diff line
@@ -335,11 +335,10 @@ int _mi_readinfo(register MI_INFO *info, int lock_type, int check_keybuffer)
int _mi_writeinfo(register MI_INFO *info, uint operation)
{
  int error,olderror;
  MYISAM_SHARE *share;
  MYISAM_SHARE *share=info->s;
  DBUG_ENTER("_mi_writeinfo");

  error=0;
  share=info->s;
  if (share->r_locks == 0 && share->w_locks == 0)
  {
    olderror=my_errno;			/* Remember last error */
+17 −0
Original line number Diff line number Diff line
@@ -492,3 +492,20 @@ a 1
a	2
MIN(B)	MAX(b)
1	1
id
0
1
2
id
0
1
2
id
0
1
2
id	id3
0	0
1	1
2	2
100	2
Loading