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-4303 UPDATE..SET using another table is not updating
The change for MCOL-4264 erroneously added the "lock_type" member to cal_connection_info, which is shared between multiple tables. So some tables that were opened for write erroneously identified themselves as read only. Moving the member to ha_mcs instead.
This commit is contained in:
@ -51,6 +51,10 @@ class ha_mcs: public handler
|
||||
// as apparently there is a linker error on the std::stack<COND*>::pop()
|
||||
// call on Ubuntu18.
|
||||
std::vector<COND*> condStack;
|
||||
int m_lock_type;
|
||||
|
||||
int impl_external_lock(THD* thd, TABLE* table, int lock_type);
|
||||
int impl_rnd_init(TABLE* table, const std::vector<COND*>& condStack);
|
||||
|
||||
public:
|
||||
ha_mcs(handlerton* hton, TABLE_SHARE* table_arg);
|
||||
@ -239,6 +243,11 @@ public:
|
||||
|
||||
int repair(THD* thd, HA_CHECK_OPT* check_opt);
|
||||
bool is_crashed() const;
|
||||
|
||||
bool isReadOnly() const
|
||||
{
|
||||
return m_lock_type == F_RDLCK;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user