Skip to content

Commit

Permalink
[SMALLFIX] Remove extraneous unboxing of Long
Browse files Browse the repository at this point in the history
pr-link: #10980
change-id: cid-73b0af461650e8ca961664ee74585ec23d4279bc
  • Loading branch information
bradyoo committed Feb 21, 2020
1 parent 8511921 commit 7d375cc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -479,8 +479,8 @@ private void waitForSnapshotStart(JournalStateMachine stateMachine,
private void waitForSnapshotting(JournalStateMachine stateMachine) throws IOException {
try {
CommonUtils.waitFor("snapshotting to finish", () -> !stateMachine.isSnapshotting(),
WaitForOptions.defaults().setTimeoutMs(Long.valueOf(ServerConfiguration.getMs(
PropertyKey.MASTER_EMBEDDED_JOURNAL_TRIGGERED_SNAPSHOT_WAIT_TIMEOUT)).intValue()));
WaitForOptions.defaults().setTimeoutMs((int) ServerConfiguration.getMs(
PropertyKey.MASTER_EMBEDDED_JOURNAL_TRIGGERED_SNAPSHOT_WAIT_TIMEOUT)));
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new CancelledException("Interrupted when waiting for snapshotting to finish", e);
Expand Down

0 comments on commit 7d375cc

Please sign in to comment.