You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-520. Removed the chmod 666 calls on our shared mem objects.
This commit is contained in:
@ -1915,12 +1915,6 @@ static void statusControlThread()
|
|||||||
{
|
{
|
||||||
#if BOOST_VERSION < 104500
|
#if BOOST_VERSION < 104500
|
||||||
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
||||||
#ifdef __linux__
|
|
||||||
{
|
|
||||||
string pname = shmLocation + keyName;
|
|
||||||
chmod(pname.c_str(), 0666);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
bi::permissions perms;
|
bi::permissions perms;
|
||||||
perms.set_unrestricted();
|
perms.set_unrestricted();
|
||||||
@ -1993,12 +1987,6 @@ static void statusControlThread()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
||||||
#ifdef __linux__
|
|
||||||
{
|
|
||||||
string pname = shmLocation + keyName;
|
|
||||||
chmod(pname.c_str(), 0666);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
shm.truncate(SYSTEMSTATshmsize);
|
shm.truncate(SYSTEMSTATshmsize);
|
||||||
fSysStatShmobj.swap(shm);
|
fSysStatShmobj.swap(shm);
|
||||||
}
|
}
|
||||||
@ -2112,12 +2100,6 @@ static void statusControlThread()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
||||||
#ifdef __linux__
|
|
||||||
{
|
|
||||||
string pname = shmLocation + keyName;
|
|
||||||
chmod(pname.c_str(), 0666);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
shm.truncate(NICSTATshmsize);
|
shm.truncate(NICSTATshmsize);
|
||||||
fNICStatShmobj.swap(shm);
|
fNICStatShmobj.swap(shm);
|
||||||
}
|
}
|
||||||
@ -2210,12 +2192,6 @@ static void statusControlThread()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
||||||
#ifdef __linux__
|
|
||||||
{
|
|
||||||
string pname = shmLocation + keyName;
|
|
||||||
chmod(pname.c_str(), 0666);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
shm.truncate(EXTDEVICESTATshmsize);
|
shm.truncate(EXTDEVICESTATshmsize);
|
||||||
fExtStatShmobj.swap(shm);
|
fExtStatShmobj.swap(shm);
|
||||||
}
|
}
|
||||||
@ -2300,12 +2276,6 @@ static void statusControlThread()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
bi::shared_memory_object shm(bi::create_only, keyName.c_str(), bi::read_write);
|
||||||
#ifdef __linux__
|
|
||||||
{
|
|
||||||
string pname = shmLocation + keyName;
|
|
||||||
chmod(pname.c_str(), 0666);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
shm.truncate(DBROOTSTATshmsize);
|
shm.truncate(DBROOTSTATshmsize);
|
||||||
fDbrootShmobj.swap(shm);
|
fDbrootShmobj.swap(shm);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user