diff --git a/LiteDB.Tests/Engine/ParallelQuery_Tests.cs b/LiteDB.Tests/Engine/ParallelQuery_Tests.cs index 5d6f49e5a..d3b3c55f2 100644 --- a/LiteDB.Tests/Engine/ParallelQuery_Tests.cs +++ b/LiteDB.Tests/Engine/ParallelQuery_Tests.cs @@ -10,7 +10,7 @@ namespace LiteDB.Tests.Engine { public class ParallelQuery_Tests { - [Fact(Skip = "Must fix parallel query fetch")] + [Fact] public void Query_Parallel() { using(var db = new LiteDatabase(new MemoryStream())) diff --git a/LiteDB/Engine/Services/LockService.cs b/LiteDB/Engine/Services/LockService.cs index cf4bbad97..99e0712a7 100644 --- a/LiteDB/Engine/Services/LockService.cs +++ b/LiteDB/Engine/Services/LockService.cs @@ -54,7 +54,8 @@ public void ExitTransaction() // if current thread are in reserved mode, do not exit transaction (will be exit from ExitExclusive) if (_transaction.IsWriteLockHeld) return; - _transaction.ExitReadLock(); + if (_transaction.IsReadLockHeld) + _transaction.ExitReadLock(); } ///