Shm: report correct size when opening segment

This commit is contained in:
Alexey Rybalchenko 2020-06-30 15:54:28 +02:00
parent 66bc7ba762
commit 78b1c188bf

View File

@ -73,7 +73,7 @@ class Manager
, fThrowOnBadAlloc(throwOnBadAlloc) , fThrowOnBadAlloc(throwOnBadAlloc)
{ {
using namespace boost::interprocess; using namespace boost::interprocess;
LOG(debug) << "created/opened shared memory segment '" << "fmq_" << fShmId << "_main" << "' of " << size << " bytes. Available are " << fSegment.get_free_memory() << " bytes."; LOG(debug) << "created/opened shared memory segment '" << "fmq_" << fShmId << "_main" << "' of " << fSegment.get_size() << " bytes. Available are " << fSegment.get_free_memory() << " bytes.";
fRegionInfos = fManagementSegment.find_or_construct<Uint64RegionInfoMap>(unique_instance)(fShmVoidAlloc); fRegionInfos = fManagementSegment.find_or_construct<Uint64RegionInfoMap>(unique_instance)(fShmVoidAlloc);
// store info about the managed segment as region with id 0 // store info about the managed segment as region with id 0