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

fix(BRM): MCOL-5879 DBRM::clearShm runs crit sections w/o sync mechanism (#3390)

This commit is contained in:
drrtuy
2025-02-20 16:33:28 +00:00
committed by GitHub
parent c0fade0c55
commit 6001db44ab
6 changed files with 29 additions and 24 deletions

View File

@ -196,27 +196,13 @@ static int generate_result(BRM::OID_t oid, BRM::DBRM* emp, TABLE* table, THD* th
return 0;
}
struct refresher
{
BRM::DBRM* guarded;
refresher()
{
guarded = new BRM::DBRM();
}
~refresher()
{
delete guarded;
BRM::DBRM::refreshShm();
}
};
static int is_columnstore_extents_fill(THD* thd, TABLE_LIST* tables, COND* cond)
{
BRM::OID_t cond_oid = 0;
TABLE* table = tables->table;
BRM::DBRM* emp;
refresher shmRefresher;
emp = shmRefresher.guarded;
BRM::DBRM::refreshShmWithLock();
BRM::DBRM* emp = new BRM::DBRM();
if (!emp || !emp->isDBRMReady())
{