Skip to content

Commit 5091504

Browse files
committed
SHM tool: allow value of 0 for rc segment
1 parent 903fad1 commit 5091504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/ShmManager/src/ShmManager.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct ShmManager {
131131
fair::mq::RegionConfig cfg;
132132
cfg.id = id;
133133
cfg.size = size;
134-
if (_refcount_segment_size) {
134+
if (_refcount_segment_size != 1) {
135135
cfg.rcSegmentSize = _refcount_segment_size;
136136
}
137137
regionCfgs.push_back(cfg);
@@ -231,7 +231,7 @@ int main(int argc, char** argv)
231231
"regions", value<vector<string>>(&regions)->multitoken()->composing(), "Regions, as <id>,<size> <id>,<size>,<numaid> <id>,<size>,<numaid> ...")(
232232
"nozero", value<bool>(&nozero)->default_value(false)->implicit_value(true), "Do not zero segments after initialization")(
233233
"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")(
234-
"refcount-segment-size", value<uint64_t>(&refcount_segment_size)->default_value(0), "Size in bytes of refCount segment (global setting affecting all unmanaged regions)")(
234+
"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)")(
235235
"help,h", "Print help");
236236

237237
variables_map vm;

0 commit comments

Comments
 (0)