src/server/daemon/resourcepool.c

changeset 563
6ca97c99173e
parent 490
d218607f5a7e
equal deleted inserted replaced
562:69fc4ecc5f60 563:6ca97c99173e
224 ResourceDataPrivate *res = (ResourceDataPrivate*)resource; 224 ResourceDataPrivate *res = (ResourceDataPrivate*)resource;
225 ResourcePool *respool = resource->resourcepool; 225 ResourcePool *respool = resource->resourcepool;
226 226
227 if(nsapi_rq && !nsapi_rq->finished) { 227 if(nsapi_rq && !nsapi_rq->finished) {
228 // request processing still ongoing and SAFs will be executed 228 // request processing still ongoing and SAFs will be executed
229 // TODO: future ucx cxMapRemove returns, if it actually removed something, therefore use just cxMapRemove
229 if(!cxMapRemoveAndGet(nsapi_rq->resources, cx_hash_key_str(respool->name))) { 230 if(!cxMapRemoveAndGet(nsapi_rq->resources, cx_hash_key_str(respool->name))) {
230 log_ereport(LOG_FAILURE, "resourcepool_free: cannot remove resource from request: potential double free"); 231 log_ereport(LOG_FAILURE, "resourcepool_free: cannot remove resource from request: potential double free");
231 } 232 }
232 } 233 }
233 // else: safe to ignore nsapi_rq->resources 234 // else: safe to ignore nsapi_rq->resources

mercurial