From dfb02884a054f797024aa59b5cede6ac7a52112a Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 16 Feb 2013 16:27:33 -0800 Subject: [PATCH] trying filesystem elq for mono linux. --- .../Datastore/ObjectDatabaseFixture.cs | 2 +- NzbDrone.Core/Datastore/EloqueraDbFactory.cs | 16 +--------------- SqlCe/NzbDrone.SqlCe.dll | Bin 4096 -> 4096 bytes 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/NzbDrone.Core.Test/Datastore/ObjectDatabaseFixture.cs b/NzbDrone.Core.Test/Datastore/ObjectDatabaseFixture.cs index 67dde8013..898a7e9bc 100644 --- a/NzbDrone.Core.Test/Datastore/ObjectDatabaseFixture.cs +++ b/NzbDrone.Core.Test/Datastore/ObjectDatabaseFixture.cs @@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.Datastore [SetUp] public void SetUp() { - WithObjectDb(); + WithObjectDb(false); testSeries = Builder .CreateNew() diff --git a/NzbDrone.Core/Datastore/EloqueraDbFactory.cs b/NzbDrone.Core/Datastore/EloqueraDbFactory.cs index b164b3ca3..83ac51ac0 100644 --- a/NzbDrone.Core/Datastore/EloqueraDbFactory.cs +++ b/NzbDrone.Core/Datastore/EloqueraDbFactory.cs @@ -22,13 +22,7 @@ namespace NzbDrone.Core.Datastore public EloqueraDb CreateMemoryDb() { - if (EnvironmentProvider.IsMono) - { - return InternalCreate("server=(local);password=;options=inmemory", Guid.NewGuid().ToString()); - - } return InternalCreate("server=(local);password=;options=inmemory;uselocalpath=" + dllPath, Guid.NewGuid().ToString()); - } public EloqueraDb Create(string dbPath = null) @@ -40,15 +34,7 @@ namespace NzbDrone.Core.Datastore var file = new FileInfo(dbPath); - if (EnvironmentProvider.IsMono) - { - return InternalCreate(string.Format("server=(local);password=;usedatapath={0}", file.Directory.FullName), file.Name); - } - else - { - return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name); - } - + return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name); } private EloqueraDb InternalCreate(string connectionString, string databaseName) diff --git a/SqlCe/NzbDrone.SqlCe.dll b/SqlCe/NzbDrone.SqlCe.dll index 5b380d3317909e9388cbbff30528566f5d4ea0ca..9cde163247f3eb5ccd06a0f566eec29be6e6b53f 100644 GIT binary patch delta 376 zcmXYtJxc>Y5Qg8KyWDzb5{-$1AA}2H6iGBz7C{tAA*i4RBZ7ruE1np8W1~S3Jf;z} z6a=-4SXuZ3QrajM0l~_z!pcIN0|(}PcG#KOnXR}L_qa+~+doXwZ`!{sMbFc~62vBe zd-7B9@G20Nc%u*K;S^;lgwpg7hv%5!Aqd*wy}F{2y; z9LMr3!GIRYMvQWkuvvSyz#8l-JHo*v4KxP?U(uSnx(NE>)^dIlLPg(!~ delta 406 zcmXv~J4gdT5PiG3+~&@h#7hwpL%5*vBp+iC2@)hJ6hsR@!ALq4#7ZoJwGlzZ59Zu5 zVxyG=5dxNCAt*M2h?Q8`il5TTQSiaM*`3Gi?7XU3HEUaZI%IE0c*L?#OP<>