Pass cache_id to cache_mng_add_core_to_cache()

struct ocf_mngt_core_config no longer contains this information,
so we need to pass it as separate argument.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-05-24 18:14:17 +02:00
parent 068aaddd4a
commit 077956f9a9
5 changed files with 8 additions and 8 deletions

View File

@@ -959,11 +959,11 @@ static int _cas_upgrade_restore_conf_core(struct cas_properties *cache_props,
cfg.try_add = 0;
cfg.volume_type = BLOCK_DEVICE_VOLUME;
cfg.core_id = core_id_int;
cfg.cache_id = ocf_cache_get_id(cache);
cfg.uuid.data = core_path;
cfg.uuid.size = strnlen(core_path, MAX_STR_LEN) + 1;
result = cache_mng_add_core_to_cache(&cfg, NULL);
result = cache_mng_add_core_to_cache(&cfg,
ocf_cache_get_id(cache), NULL);
if (result)
goto error;
}