From b14312dcef2cbb11af4556733bae7d99c48d99ec Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Tue, 9 Jun 2020 13:15:50 +0200 Subject: [PATCH] Set entry->core_id in ocf_engine_lookup_map_entry core_id should be set in this function. The fact that it is missing might lead to incorrect behaviour e.g. in case of promotion policy. Signed-off-by: Adam Rutkowski --- src/engine/engine_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/engine_common.c b/src/engine/engine_common.c index b346207..5815f2d 100644 --- a/src/engine/engine_common.c +++ b/src/engine/engine_common.c @@ -51,6 +51,7 @@ void ocf_engine_lookup_map_entry(struct ocf_cache *cache, entry->status = LOOKUP_MISS; entry->coll_idx = cache->device->collision_table_entries; entry->core_line = core_line; + entry->core_id = core_id; line = ocf_metadata_get_hash(cache, hash);