lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r802923 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestStressIndexing2.cs
Date Mon, 10 Aug 2009 20:40:17 GMT
Author: digy
Date: Mon Aug 10 20:40:17 2009
New Revision: 802923

URL: http://svn.apache.org/viewvc?rev=802923&view=rev
Log:
A small patch for TestStressIndexing2.IndexingThread.Run

//{DIGY - this unnecessary lines block the threads.
//  lock(docs) could be a solution also.
//lock (this)
//{
//    int generatedAux = docs.Count;
//}

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestStressIndexing2.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestStressIndexing2.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestStressIndexing2.cs?rev=802923&r1=802922&r2=802923&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestStressIndexing2.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestStressIndexing2.cs Mon Aug 10 20:40:17
2009
@@ -699,10 +699,12 @@
 					Assert.Fail(e.ToString());
 				}
 				
-				lock (this)
-				{
-					int generatedAux = docs.Count;
-				}
+                //{DIGY - this unnecessary lines block the threads.
+                //  lock(docs) could be a solution also.
+                //lock (this)
+                //{
+                //    int generatedAux = docs.Count;
+                //}
 			}
 		}
 		static TestStressIndexing2()



Mime
View raw message