You've already forked mariadb-columnstore-engine
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user