File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,21 @@ void proxy_lib_create_common(void) {
138
138
}
139
139
#endif
140
140
141
+ umf_pool_create_flags_t pool_flags = UMF_POOL_CREATE_FLAG_DISABLE_TRACKING ;
142
+ if (utils_env_var_has_str ("UMF_PROXY" , "tracking=enabled" )) {
143
+ LOG_DEBUG ("proxy_lib: enabling of Tracking Provider" );
144
+ pool_flags = pool_flags & ~UMF_POOL_CREATE_FLAG_DISABLE_TRACKING ;
145
+ }
146
+
141
147
umf_result = umfMemoryProviderCreate (umfOsMemoryProviderOps (), & os_params ,
142
148
& OS_memory_provider );
143
149
if (umf_result != UMF_RESULT_SUCCESS ) {
144
150
LOG_ERR ("creating OS memory provider failed" );
145
151
exit (-1 );
146
152
}
147
153
148
- umf_result =
149
- umfPoolCreate (umfPoolManagerOps (), OS_memory_provider , NULL ,
150
- UMF_POOL_CREATE_FLAG_DISABLE_TRACKING , & Proxy_pool );
154
+ umf_result = umfPoolCreate (umfPoolManagerOps (), OS_memory_provider , NULL ,
155
+ pool_flags , & Proxy_pool );
151
156
if (umf_result != UMF_RESULT_SUCCESS ) {
152
157
LOG_ERR ("creating UMF pool manager failed" );
153
158
exit (-1 );
You can’t perform that action at this time.
0 commit comments