Skip to content

Commit

Permalink
Force transaction isolationn mode
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 26, 2024
1 parent a065cd2 commit 5c23e0f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -123,7 +124,7 @@ protected override void ProcessResult(ScoreItem item)
BeatmapId = score.BeatmapID
})?.ToAPIBeatmap();

using (var transaction = conn.BeginTransaction())
using (var transaction = conn.BeginTransaction(IsolationLevel.ReadCommitted))
{
var userStats = DatabaseHelper.GetUserStatsAsync(score, conn, transaction).Result;

Expand Down

0 comments on commit 5c23e0f

Please sign in to comment.