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

MCOL-4769 Fix cache bugs. (#2151)

* MCOL-4769 Do not replay INSERTs and LDIs on the replica nodes when
the write cache is enabled.

* MCOL-4769 If a table is created with the write cache disabled
(i.e. when columnstore_cache_inserts=OFF), make it accessible when
the cache feature is enabled (columnstore_cache_inserts=ON).
This commit is contained in:
Gagan Goel
2021-11-22 15:20:50 -05:00
committed by GitHub
parent 3c65499820
commit affb2ae770
2 changed files with 110 additions and 65 deletions

View File

@ -296,6 +296,16 @@ class ha_mcs_cache :public ha_mcs
// calpontsys.syscolumn system catalog tables
bool isSysCatTable;
// True if the ColumnStore table is not cached (i.e. when the table
// was created with columnstore_cache_inserts=OFF).
bool isCacheDisabled;
bool isCacheEnabled() const
{
return (get_cache_inserts(current_thd) && !isSysCatTable &&
!isCacheDisabled);
}
public:
uint lock_counter;
ha_maria *cache_handler;