Unverified Commit 45d6e291 authored by Meggie's avatar Meggie Committed by GitHub
Browse files

Merge branch 'release/1.5.x' into backport-pr-10456-1.5

parents 10846d72 470f6539
Branches unavailable
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
```release-note:bug
core/identity: Fix deadlock in entity merge endpoint.
```
......@@ -164,6 +164,9 @@ func (i *IdentityStore) pathEntityMergeID() framework.OperationFunc {
force := d.Get("force").(bool)
// Create a MemDB transaction to merge entities
i.lock.Lock()
defer i.lock.Unlock()
txn := i.db.Txn(true)
defer txn.Abort()
......@@ -172,7 +175,7 @@ func (i *IdentityStore) pathEntityMergeID() framework.OperationFunc {
return nil, err
}
userErr, intErr := i.mergeEntity(ctx, txn, toEntity, fromEntityIDs, force, true, false, true)
userErr, intErr := i.mergeEntity(ctx, txn, toEntity, fromEntityIDs, force, false, false, true)
if userErr != nil {
return logical.ErrorResponse(userErr.Error()), nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment