Merge pull request #384 from mmichal10/remove-core-fix

Pass remove core result to cli
This commit is contained in:
Robert Baldyga 2020-04-06 10:05:09 +02:00 committed by GitHub
commit aeb166df58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1326,10 +1326,10 @@ int cache_mngt_remove_core_from_cache(struct kcas_remove_core *cmd)
mark_core_id_free(cache, cmd->core_id);
}
unlock:
if (!result && prepare_result)
result = prepare_result;
unlock:
ocf_mngt_cache_unlock(cache);
put:
ocf_mngt_cache_put(cache);