Commit 0d56d7ff authored by mskold@mysql.com's avatar mskold@mysql.com

Changed bulk insert to only be statement wise

parent 6216a8bf
...@@ -1233,8 +1233,6 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data) ...@@ -1233,8 +1233,6 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data)
DBUG_RETURN(read_res); DBUG_RETURN(read_res);
} }
// Insert new row // Insert new row
rows_inserted= 0;
rows_to_insert= 1;
int insert_res= write_row(new_data); int insert_res= write_row(new_data);
if (!insert_res) if (!insert_res)
{ {
...@@ -1338,7 +1336,7 @@ int ha_ndbcluster::delete_row(const byte *record) ...@@ -1338,7 +1336,7 @@ int ha_ndbcluster::delete_row(const byte *record)
/* /*
We are scanning records and want to delete the record We are scanning records and want to delete the record
that was just found, call deleteTuple on the cursor that was just found, call deleteTuple on the cursor
to take over the lock to a new updatedelete operation to take over the lock to a new delete operation
And thus setting the primary key of the record from And thus setting the primary key of the record from
the active record in cursor the active record in cursor
*/ */
...@@ -2010,6 +2008,8 @@ void ha_ndbcluster::start_bulk_insert(ha_rows rows) ...@@ -2010,6 +2008,8 @@ void ha_ndbcluster::start_bulk_insert(ha_rows rows)
int ha_ndbcluster::end_bulk_insert() int ha_ndbcluster::end_bulk_insert()
{ {
DBUG_ENTER("end_bulk_insert"); DBUG_ENTER("end_bulk_insert");
rows_inserted= 0;
rows_to_insert= 1;
DBUG_RETURN(0); DBUG_RETURN(0);
} }
...@@ -2716,7 +2716,7 @@ ha_ndbcluster::ha_ndbcluster(TABLE *table_arg): ...@@ -2716,7 +2716,7 @@ ha_ndbcluster::ha_ndbcluster(TABLE *table_arg):
HA_NO_BLOBS), HA_NO_BLOBS),
m_use_write(false), m_use_write(false),
retrieve_all_fields(FALSE), retrieve_all_fields(FALSE),
rows_to_insert(0), rows_to_insert(1),
rows_inserted(0), rows_inserted(0),
bulk_insert_rows(1024), bulk_insert_rows(1024),
ops_pending(0) ops_pending(0)
......
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