Code rewiew: constant naming

This commit is contained in:
Christian Sailer 2017-10-27 09:37:39 +01:00
parent 170fde9d71
commit 79f080368b
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ interface NodeConfiguration : NodeSSLConfiguration {
val additionalNodeInfoPollingFrequencyMsec: Long
companion object {
val disableCheckpointCheckerFlag = "disableCheckpointChecker"
const val DISABLE_CHECKPOINT_CHECKER = "disableCheckpointChecker"
}
}

View File

@ -91,7 +91,7 @@ class StateMachineManagerImpl(
private val mutex = ThreadBox(InnerState())
// This thread (only enabled in dev mode) deserialises checkpoints in the background to shake out bugs in checkpoint restore.
private val checkpointCheckerThread = if (serviceHub.configuration.devMode
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.disableCheckpointCheckerFlag))
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.DISABLE_CHECKPOINT_CHECKER))
newNamedSingleThreadExecutor("CheckpointChecker") else null
@Volatile private var unrestorableCheckpoints = false