Merge pull request #149 from Donaim/master

Set core_id during load if user did not specify one
This commit is contained in:
Michał Wysoczański
2019-05-10 12:59:07 +02:00
committed by GitHub

View File

@@ -315,6 +315,11 @@ static int __ocf_mngt_try_find_core_id(ocf_cache_t cache,
return -OCF_ERR_CORE_NOT_AVAIL;
}
if (cfg->core_id == OCF_CORE_MAX) {
cfg->core_id = tmp_core_id;
return 0;
}
if (cfg->core_id != tmp_core_id) {
ocf_cache_log(cache, log_err,
"Given core id doesn't match with metadata\n");