Skip to content

Commit 2bf11f3

Browse files
author
Vladimir Kotal
committed
make the rebuilding boolean volatile
1 parent 0cc487e commit 2bf11f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suggester/src/main/java/org/opengrok/suggest/Suggester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public final class Suggester implements Closeable {
9191

9292
private final int rebuildParallelismLevel;
9393

94-
private boolean rebuilding;
94+
private volatile boolean rebuilding;
9595
private final Lock rebuildLock = new ReentrantLock();
9696
private final Condition rebuildDone = rebuildLock.newCondition();
9797

0 commit comments

Comments
 (0)