mirror of https://github.com/apache/lucene.git
[TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe
This commit is contained in:
parent
fe83838ec3
commit
59087d148a
|
@ -804,7 +804,7 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: This is off by default; see LUCENE-5574
|
// NOTE: This is off by default; see LUCENE-5574
|
||||||
private boolean assertNoUnreferencedFilesOnClose;
|
private volatile boolean assertNoUnreferencedFilesOnClose;
|
||||||
|
|
||||||
public void setAssertNoUnrefencedFilesOnClose(boolean v) {
|
public void setAssertNoUnrefencedFilesOnClose(boolean v) {
|
||||||
assertNoUnreferencedFilesOnClose = v;
|
assertNoUnreferencedFilesOnClose = v;
|
||||||
|
|
Loading…
Reference in New Issue