Check core status during recovery based on core metadata

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2022-01-17 20:48:17 +01:00
parent 568c565497
commit 25e2551964

View File

@ -527,7 +527,7 @@ static int _ocf_mngt_rebuild_metadata(ocf_cache_t cache)
continue;
}
if (!cache->core[core_id].added) {
if (!cache->core[core_id].conf_meta->valid) {
ocf_cache_log(cache, log_err, "Stale mapping in "
"on-disk metadata - refusing to "
"recover cache.\n");