List:Internals« Previous MessageNext Message »
From:ingo Date:September 13 2005 6:20pm
Subject:bk commit into 4.0 tree (ingo:1.2150) BUG#12845
View as plain text  
Below is the list of changes that have just been committed into a local
4.0 repository of mydev. When mydev does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2150 05/09/13 20:19:59 ingo@stripped +1 -0
  Bug#12845 - Stress test: Server crashes on  CREATE .. SELECT statement
  Solution for 4.0 and 4.1.
  If the caller cannot re-open table(s), it gives a NULL
  'refresh' argument to open_table(). We used to ignore
  flushes then. Now we ignore drops too.

  sql/sql_base.cc
    1.192 05/09/13 20:19:57 ingo@stripped +7 -0
    Bug#12845 - Stress test: Server crashes on  CREATE .. SELECT statement
    Solution for 4.0 and 4.1.
    If the caller cannot re-open table(s), it gives a NULL
    'refresh' argument to open_table(). We used to ignore
    flushes then. Now we ignore drops too.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	ingo
# Host:	chilla.local
# Root:	/home/mydev/mysql-4.0-4000

--- 1.191/sql/sql_base.cc	2005-07-26 16:53:32 +02:00
+++ 1.192/sql/sql_base.cc	2005-09-13 20:19:57 +02:00
@@ -871,6 +871,13 @@
   {
     if (table->version != refresh_version)
     {
+      if (! refresh)
+      {
+        /* Ignore flush for now, but force close after usage. */
+        thd->version= table->version;
+        continue;
+      }
+
       /*
       ** There is a refresh in progress for this table
       ** Wait until the table is freed or the thread is killed.
Thread
bk commit into 4.0 tree (ingo:1.2150) BUG#12845ingo13 Sep