MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:tomas Date:September 20 2005 12:20pm
Subject:bk commit into 4.1 tree (tomas:1.2446) BUG#10694
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of tomas. When tomas 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.2446 05/09/20 14:20:02 tomas@stripped +1 -0
  Bug #10694  	LOAD DATA FROM INFILE fails with 'Out of operation records'

  sql/sql_load.cc
    1.84 05/09/20 14:19:58 tomas@stripped +5 -2
    Bug #10694  	LOAD DATA FROM INFILE fails with 'Out of operation records'

# 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:	tomas
# Host:	poseidon.ndb.mysql.com
# Root:	/home/tomas/mysql-4.1

--- 1.83/sql/sql_load.cc	2004-12-31 11:04:30 +01:00
+++ 1.84/sql/sql_load.cc	2005-09-20 14:19:58 +02:00
@@ -114,6 +114,10 @@
 	       MYF(0));
     DBUG_RETURN(-1);
   }
+  /*
+    This needs to be done before external_lock
+  */
+  ha_enable_transaction(thd, FALSE); 
   if (!(table = open_ltable(thd,table_list,lock_type)))
     DBUG_RETURN(-1);
   transactional_table= table->file->has_transactions();
@@ -273,7 +277,6 @@
     if (ignore ||
 	handle_duplicates == DUP_REPLACE)
       table->file->extra(HA_EXTRA_IGNORE_DUP_KEY);
-    ha_enable_transaction(thd, FALSE); 
     table->file->start_bulk_insert((ha_rows) 0);
     table->copy_blobs=1;
     if (!field_term->length() && !enclosed->length())
@@ -284,10 +287,10 @@
 			   skip_lines);
     if (table->file->end_bulk_insert())
       error=1;					/* purecov: inspected */
-    ha_enable_transaction(thd, TRUE);
     table->file->extra(HA_EXTRA_NO_IGNORE_DUP_KEY);
     table->next_number_field=0;
   }
+  ha_enable_transaction(thd, TRUE);
   if (file >= 0)
     my_close(file,MYF(0));
   free_blobs(table);				/* if pack_blob was used */
Thread
bk commit into 4.1 tree (tomas:1.2446) BUG#10694tomas20 Sep