1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-02 17:22:27 +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)))
{
ci->singleInsert = true; // reset the flag
ci->isLoaddataInfile = false;
ci->tableOid = 0;
ci->rowsHaveInserted = 0;
ci->useCpimport = 1;
}
// MCOL-4002 We earlier had these re-initializations set only for
// non-transactions, i.e.:
// !(thd->variables.option_bits & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))
// However, we should be resetting these members anyways.
ci->singleInsert = true; // reset the flag
ci->isLoaddataInfile = false;
ci->tableOid = 0;
ci->rowsHaveInserted = 0;
ci->useCpimport = 1;
return rc;
}