Commit 0d9ba267 authored by unknown's avatar unknown
Browse files

Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0

into mysql.com:/usr/local/home/marty/MySQL/test/mysql-5.0-ndb


BitKeeper/etc/logging_ok:
  auto-union
BitKeeper/triggers/post-commit:
  Auto merged
sql/item.cc:
  Auto merged
sql/log.cc:
  Auto merged
sql/sql_parse.cc:
  Auto merged
parents dde2e462 a4b1bcef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ select get_lock("a", 10);
connection con2;
let $ID= `select connection_id()`;
send select get_lock("a", 10);
-- sleep 2
--real_sleep 2;
connection con1;
disable_query_log;
eval kill query $ID;
+6 −6
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
int ha_archive::write_row(byte * buf)
{
  z_off_t written;
  uint *ptr, *end;
  uint *bptr, *end;
  DBUG_ENTER("ha_archive::write_row");

  if (share->crashed)
@@ -596,16 +596,16 @@ int ha_archive::write_row(byte * buf)
    We should probably mark the table as damagaged if the record is written
    but the blob fails.
  */
  for (ptr= table->s->blob_field, end=ptr + table->s->blob_fields ;
       ptr != end ;
       ptr++)
  for (bptr= table->s->blob_field, end=bptr + table->s->blob_fields ;
       bptr != end ;
       bptr++)
  {
    char *ptr;
    uint32 size= ((Field_blob*) table->field[*ptr])->get_length();
    uint32 size= ((Field_blob*) table->field[*bptr])->get_length();

    if (size)
    {
      ((Field_blob*) table->field[*ptr])->get_ptr(&ptr);
      ((Field_blob*) table->field[*bptr])->get_ptr(&ptr);
      written= gzwrite(share->archive_write, ptr, (unsigned)size);
      if (written != size)
        goto error;
+6 −0
Original line number Diff line number Diff line
@@ -171,6 +171,12 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
#define FLUSH_TIME		0		/* Don't flush tables */
#define MAX_CONNECT_ERRORS	10		// errors before disabling host

#ifdef HAVE_INNOBASE_DB
#define IF_INNOBASE_DB(A, B) (A)
#else
#define IF_INNOBASE_DB(A, B) (B)
#endif

#if defined(__WIN__) || defined(OS2)
#define IF_WIN(A,B) (A)
#undef	FLUSH_TIME
+4 −6
Original line number Diff line number Diff line
@@ -1810,9 +1810,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
    TABLE_LIST table_list;
    LEX_STRING conv_name;
    /* Saved variable value */
#ifdef HAVE_INNOBASE_DB
    my_bool old_innodb_table_locks= thd->variables.innodb_table_locks;
#endif
    my_bool old_innodb_table_locks= 
              IF_INNOBASE_DB(thd->variables.innodb_table_locks, FALSE);


    statistic_increment(thd->status_var.com_stat[SQLCOM_SHOW_FIELDS],
@@ -2340,9 +2339,8 @@ mysql_execute_command(THD *thd)
  /* Locked closure of all tables */
  TABLE_LIST *locked_tables= NULL;
  /* Saved variable value */
#ifdef HAVE_INNOBASE_DB
  my_bool old_innodb_table_locks= thd->variables.innodb_table_locks;
#endif
  my_bool old_innodb_table_locks=
            IF_INNOBASE_DB(thd->variables.innodb_table_locks, FALSE);
  DBUG_ENTER("mysql_execute_command");
  thd->net.no_send_error= 0;