You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
For INSERT ... SELECT, don't use the is_cache_insert flag
when starting bulk insert. This will invoke cpimport for the query instead of batch inserts mode. This is intentional as batch inserts currently have an edge case mentioned in MCOL-4037 that needs to be fixed.
This commit is contained in:
@ -1329,7 +1329,8 @@ ha_mcs_cache::ha_mcs_cache(handlerton *hton, TABLE_SHARE *table_arg, MEM_ROOT *m
|
|||||||
|
|
||||||
ha_mcs_cache::~ha_mcs_cache()
|
ha_mcs_cache::~ha_mcs_cache()
|
||||||
{
|
{
|
||||||
delete cache_handler;
|
if (cache_handler)
|
||||||
|
delete cache_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1593,7 +1594,7 @@ void ha_mcs_cache::start_bulk_insert(ha_rows rows, uint flags)
|
|||||||
bzero(&cache_handler->copy_info, sizeof(cache_handler->copy_info));
|
bzero(&cache_handler->copy_info, sizeof(cache_handler->copy_info));
|
||||||
return cache_handler->start_bulk_insert(rows, flags);
|
return cache_handler->start_bulk_insert(rows, flags);
|
||||||
}
|
}
|
||||||
return parent::start_bulk_insert_from_cache(rows, flags);
|
return parent::start_bulk_insert(rows, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user