lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [3/4] lucenenet git commit: Lucene.Net.Tests.Search.TestControlledRealTimeReopenThread.DoAfterWriter(): Enabled Thread priority for .NET Core 2.0 tests
Date Fri, 22 Sep 2017 10:06:52 GMT
Lucene.Net.Tests.Search.TestControlledRealTimeReopenThread.DoAfterWriter(): Enabled Thread
priority for .NET Core 2.0 tests


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/decca779
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/decca779
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/decca779

Branch: refs/heads/master
Commit: decca779a7a6fce84a1ef5fe392ec000192c34fe
Parents: daa82f6
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Sep 22 16:49:54 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Sep 22 16:49:54 2017 +0700

----------------------------------------------------------------------
 .../Search/TestControlledRealTimeReopenThread.cs                 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/decca779/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs b/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
index f7d2d33..a9edd4f 100644
--- a/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
+++ b/src/Lucene.Net.Tests/Search/TestControlledRealTimeReopenThread.cs
@@ -276,7 +276,7 @@ namespace Lucene.Net.Search
 
             nrtDeletesThread = new ControlledRealTimeReopenThread<IndexSearcher>(genWriter,
nrtDeletes, maxReopenSec, minReopenSec);
             nrtDeletesThread.Name = "NRTDeletes Reopen Thread";
-#if !NETSTANDARD
+#if !NETSTANDARD1_5
             nrtDeletesThread.Priority = (ThreadPriority)Math.Min((int)Thread.CurrentThread.Priority
+ 2, (int)ThreadPriority.Highest);
 #endif
             nrtDeletesThread.SetDaemon(true);
@@ -284,7 +284,7 @@ namespace Lucene.Net.Search
 
             nrtNoDeletesThread = new ControlledRealTimeReopenThread<IndexSearcher>(genWriter,
nrtNoDeletes, maxReopenSec, minReopenSec);
             nrtNoDeletesThread.Name = "NRTNoDeletes Reopen Thread";
-#if !NETSTANDARD
+#if !NETSTANDARD1_5
             nrtNoDeletesThread.Priority = (ThreadPriority)Math.Min((int)Thread.CurrentThread.Priority
+ 2, (int)ThreadPriority.Highest);
 #endif
             nrtNoDeletesThread.SetDaemon(true);


Mime
View raw message