mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
Fix for HER-1942 CheckpointService: inconsistent synchronization around use of isRunning. Doubtful if isRunning thing is a real problem, but it looks like a good idea to synchronize this method anyway, in case there are concurrent calls to it.
* CheckpointService.java
setRecoveryCheckpointByName() - mark synchronized
This commit is contained in:
1 parent
5934e10073
commit
48b0ddfb03
1 file changed
+1
-1
@@ -325,7 +325,7 @@ public class CheckpointService implements Lifecycle, ApplicationContextAware, Ha
|
||||
*
|
||||
* @param selectedCheckpoint
|
||||
*/
|
||||
public void setRecoveryCheckpointByName(String selectedCheckpoint) {
|
||||
public synchronized void setRecoveryCheckpointByName(String selectedCheckpoint) {
|
||||
if(isRunning) {
|
||||
throw new RuntimeException("may not set recovery Checkpoint after launch");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user