You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user