Commit fd35014
committed
Avoid asset registry deadlocks when looking up assets
When the metadata was already provided by the caller, don't obtain a
lock at all - there's no need to.
In cases where acquiring the lock is necessary, release it immediately
after reading the asset's metadata.1 parent 69fee9c commit fd35014
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | 380 | | |
382 | | - | |
383 | | - | |
| 381 | + | |
| 382 | + | |
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
| |||
0 commit comments