[TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe

This commit is contained in:
Simon Willnauer 2018-06-04 17:28:32 +02:00
parent fe83838ec3
commit 59087d148a
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
}
// NOTE: This is off by default; see LUCENE-5574
private boolean assertNoUnreferencedFilesOnClose;
private volatile boolean assertNoUnreferencedFilesOnClose;
public void setAssertNoUnrefencedFilesOnClose(boolean v) {
assertNoUnreferencedFilesOnClose = v;