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

MCOL-520. More untested changes.

Went down the list in shmkeys.h, added sane error msgs on perms
errors accessing rest of the shmsegs there.
Realized we probably do need 666 to the shmsegs.
Also deleted a little dead code that was copy-pasted everywhere.
This commit is contained in:
Patrick LeBlanc
2018-10-04 14:25:01 -05:00
parent a35009c8ee
commit 4215a47b5c
10 changed files with 17 additions and 59 deletions

View File

@ -73,7 +73,9 @@ bool getshm(const string &name, int size, bi::shared_memory_object &target) {
bool created = false;
try
{
bi::shared_memory_object shm(bi::create_only, name.c_str(), bi::read_write);
bi::permissions perms;
perms.set_unrestricted();
bi::shared_memory_object shm(bi::create_only, name.c_str(), bi::read_write, perms);
created = true;
shm.truncate(size);
target.swap(shm);