fix race on index data structure caused by locking wrong object (#219)
This commit is contained in:
Родитель
a6034f6ced
Коммит
c5aefce2ef
|
@ -85,7 +85,7 @@ namespace DurableTask.Netherite
|
|||
|
||||
if (this.InstanceIds != null)
|
||||
{
|
||||
lock (this)
|
||||
lock (this.InstanceIds)
|
||||
{
|
||||
if (!evt.DeleteInstance)
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ namespace DurableTask.Netherite
|
|||
|
||||
if (this.InstanceIds != null)
|
||||
{
|
||||
lock (this)
|
||||
lock (this.InstanceIds)
|
||||
{
|
||||
foreach (var key in evt.Purged)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче