mirror of https://github.com/apache/lucene.git
make this thread safe
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1593498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
449600db82
commit
557e62bfe4
|
@ -1034,7 +1034,7 @@ public abstract class LuceneTestCase extends Assert {
|
|||
}
|
||||
|
||||
// if you want it in LiveIndexWriterConfig: it must and will be tested here.
|
||||
public static void maybeChangeLiveIndexWriterConfig(Random r, LiveIndexWriterConfig c) {
|
||||
public static synchronized void maybeChangeLiveIndexWriterConfig(Random r, LiveIndexWriterConfig c) {
|
||||
boolean didChange = false;
|
||||
|
||||
if (rarely(r)) {
|
||||
|
|
Loading…
Reference in New Issue