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:
Michael McCandless 2014-05-09 08:46:04 +00:00
parent 449600db82
commit 557e62bfe4
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {