Skip to content

Commit

Permalink
DAOS-16766 container: don't create for cont lookup
Browse files Browse the repository at this point in the history
If container is not found from LRU, that means it was evicted from cache.
This should only happens on container stopped or destroyed. don't create
it again to avoid any race.

Signed-off-by: Wang Shilong <[email protected]>
  • Loading branch information
wangshilong committed Dec 31, 2024
1 parent eb471d9 commit 7b2b12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/container/srv_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,8 +1373,8 @@ ds_cont_child_lookup(uuid_t pool_uuid, uuid_t cont_uuid,
struct dsm_tls *tls = dsm_tls_get();
int rc;

rc = cont_child_lookup(tls->dt_cont_cache, cont_uuid, pool_uuid,
true /* create */, ds_cont);
rc = cont_child_lookup(tls->dt_cont_cache, cont_uuid, pool_uuid, false /* create */,
ds_cont);
if (rc != 0)
return rc;

Expand Down

0 comments on commit 7b2b12c

Please sign in to comment.