Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
45d6e291
Unverified
Commit
45d6e291
authored
4 years ago
by
Meggie
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge branch 'release/1.5.x' into backport-pr-10456-1.5
parents
10846d72
470f6539
Branches unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog/10877.txt
+3
-0
changelog/10877.txt
vault/identity_store_entities.go
+4
-1
vault/identity_store_entities.go
with
7 additions
and
1 deletion
+7
-1
changelog/10877.txt
0 → 100644
+
3
-
0
View file @
45d6e291
```release-note:bug
core/identity: Fix deadlock in entity merge endpoint.
```
This diff is collapsed.
Click to expand it.
vault/identity_store_entities.go
+
4
-
1
View file @
45d6e291
...
...
@@ -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
,
tru
e
,
false
,
true
)
userErr
,
intErr
:=
i
.
mergeEntity
(
ctx
,
txn
,
toEntity
,
fromEntityIDs
,
force
,
fals
e
,
false
,
true
)
if
userErr
!=
nil
{
return
logical
.
ErrorResponse
(
userErr
.
Error
()),
nil
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help