Skip to content

Commit

Permalink
Change the SQL locking to use public Principal (#3319)
Browse files Browse the repository at this point in the history
  • Loading branch information
preardon authored Sep 24, 2024
1 parent 70137f7 commit 69b00ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paramore.Brighter.Locking.MsSql/MsSqlLockingQueries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class MsSqlLockingQueries
{
public const string ObtainLockQuery = "declare @result int; " +
"Exec @result = sp_getapplock " +
"@DbPrincipal = 'dbo' " +
"@DbPrincipal = 'public' " +
",@Resource = @Resource" +
",@LockMode = 'Exclusive'" +
",@LockTimeout = @LockTimeout" +
Expand All @@ -13,6 +13,6 @@ public static class MsSqlLockingQueries

public const string ReleaseLockQuery = "EXEC sp_releaseapplock " +
"@Resource = @Resource " +
",@DbPrincipal = 'dbo' " +
",@DbPrincipal = 'public' " +
",@LockOwner = 'Session';";
}

0 comments on commit 69b00ff

Please sign in to comment.