Skip to content

Commit

Permalink
Merge pull request #34 from smoogipoo/fix-pooling-env-var
Browse files Browse the repository at this point in the history
Fix inverted DB pooling value
  • Loading branch information
peppy authored Nov 1, 2024
2 parents 5a9a41d + 2a365e3 commit 001e033
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osu.Server.QueueProcessor/DatabaseAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public static MySqlConnection GetConnection()
string user = (Environment.GetEnvironmentVariable("DB_USER") ?? "root");
string password = (Environment.GetEnvironmentVariable("DB_PASS") ?? string.Empty);
string name = (Environment.GetEnvironmentVariable("DB_NAME") ?? "osu");
bool pooling = string.Equals(Environment.GetEnvironmentVariable("DB_POOLING"), Boolean.FalseString, StringComparison.InvariantCultureIgnoreCase)
&& Environment.GetEnvironmentVariable("DB_POOLING") != "0";
bool pooling = Environment.GetEnvironmentVariable("DB_POOLING") != "0";
int maxPoolSize = int.Parse(Environment.GetEnvironmentVariable("DB_MAX_POOL_SIZE") ?? "100");

string passwordString = string.IsNullOrEmpty(password) ? string.Empty : $"Password={password};";
Expand Down

0 comments on commit 001e033

Please sign in to comment.