forked from betr-io/terraform-provider-mssql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix concurrency issue on user create/update
When creating or updating a mssql user in servers with compatibility level below 130, the `string_split` function needs to be created. At the moment, this is causing issues when trying to create/update multiple users, as each of those requests tries to create the same function. This change introduces a lock on application resource in exclusive mode so that only one of the calls creates the function. Fixes betr-io#31
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters