Skip to content

Commit 84af745

Browse files
committed
Distributed locks in SQL Server storage respect schema name
1 parent 0e7ecbf commit 84af745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hangfire.SqlServer/SqlServerConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public override IDisposable AcquireDistributedLock(string resource, TimeSpan tim
4646
{
4747
return new SqlServerDistributedLock(
4848
_storage,
49-
String.Format("HangFire:{0}", resource),
49+
String.Format("{0}:{1}", _storage.GetSchema(), resource),
5050
timeout);
5151
}
5252

0 commit comments

Comments
 (0)