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

Merge pull request #2899 from mariadb-corporation/simpler_singletons

MCOL-5532: Simpler singletons
This commit is contained in:
drrtuy
2023-07-17 11:28:15 +01:00
committed by GitHub
7 changed files with 112 additions and 156 deletions

View File

@ -116,8 +116,6 @@ bool gPMProfOn = false;
uint32_t gSession = 0;
dbbc::Stats pmstats(statsName);
oam::OamCache* oamCache = oam::OamCache::makeOamCache();
// FIXME: there is an anon ns burried later in between 2 named namespaces...
namespace primitiveprocessor
{

View File

@ -19,6 +19,7 @@
#include "columncommand.h"
#include "blocksize.h"
#include "oamcache.h"
namespace primitiveprocessor
{
@ -77,7 +78,7 @@ void PseudoCC::loadSingleValue(W val)
template <typename W>
void PseudoCC::loadPMNumber()
{
uint32_t pmNum = oamCache->getLocalPMId();
uint32_t pmNum = oam::OamCache::makeOamCache()->getLocalPMId();
loadSingleValue<W>(pmNum);
}