You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
fix(BRM): MCOL-5879 DBRM::clearShm runs crit sections w/o sync mechanism (#3391)
This commit is contained in:
@@ -265,6 +265,12 @@ class ExtentMapRBTreeImpl
|
||||
|
||||
static ExtentMapRBTreeImpl* makeExtentMapRBTreeImpl(unsigned key, off_t size, bool readOnly = false);
|
||||
|
||||
static void refreshShmWithLock()
|
||||
{
|
||||
boost::mutex::scoped_lock lk(fInstanceMutex);
|
||||
return refreshShm();
|
||||
}
|
||||
|
||||
static void refreshShm()
|
||||
{
|
||||
if (fInstance)
|
||||
@@ -317,6 +323,13 @@ class FreeListImpl
|
||||
~FreeListImpl(){};
|
||||
|
||||
static FreeListImpl* makeFreeListImpl(unsigned key, off_t size, bool readOnly = false);
|
||||
|
||||
static void refreshShmWithLock()
|
||||
{
|
||||
boost::mutex::scoped_lock lk(fInstanceMutex);
|
||||
return refreshShm();
|
||||
}
|
||||
|
||||
static void refreshShm()
|
||||
{
|
||||
if (fInstance)
|
||||
|
Reference in New Issue
Block a user