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

Number of cached rows can be > CACHE_FLUSH_THRESHOLD (in case of batch inserts).

This commit is contained in:
Gagan Goel
2020-08-17 16:44:08 -04:00
parent 709290cc3d
commit 47f2291f9f

View File

@ -1205,7 +1205,7 @@ my_bool get_status_and_flush_cache(void *param,
{
ha_rows num_rows = cache->num_rows_cached();
if ((!cache->insert_command && num_rows != 0) ||
num_rows == CACHE_FLUSH_THRESHOLD)
num_rows >= CACHE_FLUSH_THRESHOLD)
{
if ((error= cache->flush_insert_cache()))
{