Merge pull request #662 from jfckm/fix-invalid-message-try-add
Fix message when try-adding already opened core
This commit is contained in:
commit
87d71f319e
@ -256,8 +256,8 @@ static void ocf_mngt_cache_try_add_core_prepare(ocf_pipeline_t pipeline,
|
||||
goto err;
|
||||
|
||||
if (core->opened) {
|
||||
result = -OCF_ERR_INVAL;
|
||||
goto err;
|
||||
ocf_cache_log(cache, log_err, "Core already opened\n");
|
||||
OCF_PL_FINISH_RET(context->pipeline, -OCF_ERR_CORE_UUID_EXISTS);
|
||||
}
|
||||
|
||||
volume = ocf_core_get_volume(core);
|
||||
|
Loading…
Reference in New Issue
Block a user