Merge pull request #340 from micrakow/dbg_log_metadata
Moved setting ctx for temporary cache object before metadata init
This commit is contained in:
commit
db2bdb01f3
@ -1206,6 +1206,7 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
|
||||
}
|
||||
|
||||
tmp_cache = params.cache;
|
||||
tmp_cache->owner = ctx;
|
||||
|
||||
/*
|
||||
* Initialize metadata selected segments of metadata in memory
|
||||
@ -1218,8 +1219,6 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
|
||||
}
|
||||
params.flags.metadata_inited = true;
|
||||
|
||||
tmp_cache->owner = ctx;
|
||||
|
||||
result = ocf_cache_set_name(tmp_cache, cfg->name, OCF_CACHE_NAME_SIZE);
|
||||
if (result) {
|
||||
env_rmutex_unlock(&ctx->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user