Skip to content

Commit 98154b4

Browse files
authored
Merge pull request #2286 from igchor/disable_buffers
[Common] fix parseDisjointPoolConfig
2 parents 9e984c8 + d263f9d commit 98154b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/common/umf_pools/disjoint_pool_config_parser.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
215215
}
216216
}
217217

218+
AllConfigs.EnableBuffers = EnableBuffers;
219+
218220
AllConfigs.limits = std::shared_ptr<umf_disjoint_pool_shared_limits_t>(
219221
umfDisjointPoolSharedLimitsCreate(MaxSize),
220222
umfDisjointPoolSharedLimitsDestroy);
@@ -224,10 +226,6 @@ DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
224226
Config.PoolTrace = trace;
225227
}
226228

227-
if (!EnableBuffers) {
228-
return {};
229-
}
230-
231229
if (!trace) {
232230
return AllConfigs;
233231
}

0 commit comments

Comments
 (0)