1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4002 Reset cal_connection_info members at the end of

ha_mcs_impl_end_bulk_insert() for transactions as well.
This commit is contained in:
Gagan Goel
2020-05-14 16:21:49 -04:00
parent 0a5f6f12ea
commit e4dde6157d

View File

@ -3832,14 +3832,15 @@ int ha_mcs_impl_end_bulk_insert(bool abort, TABLE* table)
} }
} }
if (!(thd->variables.option_bits & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))) // MCOL-4002 We earlier had these re-initializations set only for
{ // non-transactions, i.e.:
ci->singleInsert = true; // reset the flag // !(thd->variables.option_bits & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))
ci->isLoaddataInfile = false; // However, we should be resetting these members anyways.
ci->tableOid = 0; ci->singleInsert = true; // reset the flag
ci->rowsHaveInserted = 0; ci->isLoaddataInfile = false;
ci->useCpimport = 1; ci->tableOid = 0;
} ci->rowsHaveInserted = 0;
ci->useCpimport = 1;
return rc; return rc;
} }