Merge pull request #144 from mmichal10/error-message

Error message
This commit is contained in:
Adam Rutkowski 2019-10-01 16:25:14 +02:00 committed by GitHub
commit e89262588f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,10 @@ struct {
OCF_ERR_CACHE_NOT_EXIST,
"Cache ID does not exist"
},
{
OCF_ERR_CORE_NOT_EXIST,
"Core ID does not exist"
},
{
OCF_ERR_CACHE_EXIST,
"Cache ID already exists"

View File

@ -916,7 +916,7 @@ int cache_mngt_remove_core_from_cache(struct kcas_remove_core *cmd)
wait_for_completion_interruptible(&context.compl);
if (!result && cmd->detach) {
if (!result && !cmd->detach) {
cache_priv = ocf_cache_get_priv(cache);
mark_core_id_free(cache_priv->core_id_bitmap, cmd->core_id);
}