FairRootGroup / FairMQ

C++ Message Queuing Library and Framework
GNU Lesser General Public License v3.0
86 stars 34 forks source link

shm: allow ResetContent to cleanup after a crash #416

Closed rbx closed 2 years ago

rbx commented 2 years ago

Previously a recovery after fair::mq::shmem::ResetContent ("soft" reset of shmem segments) would rely on the content of the management segment to be intact, which is only the case during an orderly shutdown. In case of crashes this content can be incorrect or corrupted. The new overload of fair::mq::shmem::ResetContent accepts configuration parameters for segments and unmanaged regions that allow recreation of the management segment with a valid state.