Skip to content

Commit

Permalink
SHM tool: allow value of 0 for rc segment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Dec 2, 2023
1 parent 903fad1 commit 5091504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/ShmManager/src/ShmManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ struct ShmManager {
fair::mq::RegionConfig cfg;
cfg.id = id;
cfg.size = size;
if (_refcount_segment_size) {
if (_refcount_segment_size != 1) {
cfg.rcSegmentSize = _refcount_segment_size;
}
regionCfgs.push_back(cfg);
Expand Down Expand Up @@ -231,7 +231,7 @@ int main(int argc, char** argv)
"regions", value<vector<string>>(&regions)->multitoken()->composing(), "Regions, as <id>,<size> <id>,<size>,<numaid> <id>,<size>,<numaid> ...")(
"nozero", value<bool>(&nozero)->default_value(false)->implicit_value(true), "Do not zero segments after initialization")(
"check-presence", value<bool>(&checkPresence)->default_value(true)->implicit_value(true), "Check periodically if configured segments/regions are still present, and cleanup and leave if they are not")(
"refcount-segment-size", value<uint64_t>(&refcount_segment_size)->default_value(0), "Size in bytes of refCount segment (global setting affecting all unmanaged regions)")(
"refcount-segment-size", value<uint64_t>(&refcount_segment_size)->default_value(1), "Size in bytes of refCount segment (global setting affecting all unmanaged regions, 1 = use default, 0 = disable rc segment)")(
"help,h", "Print help");

variables_map vm;
Expand Down

0 comments on commit 5091504

Please sign in to comment.