1
0
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:
Alexander Barkov
2020-09-11 12:26:26 +04:00
parent 62ef0dafe1
commit 7f6ad16728
5 changed files with 18 additions and 17 deletions

View File

@ -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;
}
};