Skip to content

Commit

Permalink
Remove group alias mdmdb update outside of UpsertGroupInTxn
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Sep 6, 2018
1 parent 0b3607a commit fd864e6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions vault/identity_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,6 @@ func (i *IdentityStore) Invalidate(ctx context.Context, key string) {
}
}

// Update MemDB with new group alias information
if group.Alias != nil {
err = i.MemDBUpsertAliasInTxn(txn, group.Alias, true)
if err != nil {
i.logger.Error("failed to update group alias in MemDB", "error", err)
return
}
}

// Only update MemDB and don't touch the storage
err = i.UpsertGroupInTxn(txn, group, false)
if err != nil {
Expand Down

0 comments on commit fd864e6

Please sign in to comment.