diff options
| author | Luke Bakken <lbakken@pivotal.io> | 2019-11-06 10:40:56 +0000 |
|---|---|---|
| committer | Luke Bakken <lbakken@pivotal.io> | 2019-11-06 10:40:56 +0000 |
| commit | 863bc05679ab3a48758d612d5a0b2e2985b08ab2 (patch) | |
| tree | 05ac228f7bc833cc004c39004d5dd3c97f0ad125 /src/rabbit.erl | |
| parent | 151ad8dd013766554ecae8ef143dc63f44f8d3ab (diff) | |
| download | rabbitmq-server-git-863bc05679ab3a48758d612d5a0b2e2985b08ab2.tar.gz | |
Take infinity timeout into account
Fixes #2158
Related to #2144
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index da721bed88..87ceb5d701 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -765,6 +765,10 @@ await_startup(Node, PrintProgressReports, Timeout) -> wait_for_boot_to_start(Node) -> wait_for_boot_to_start(Node, ?BOOT_START_TIMEOUT). +wait_for_boot_to_start(Node, infinity) -> + %% This assumes that 100K iterations is close enough to "infinity". + %% Now that's deep. + do_wait_for_boot_to_start(Node, 100000); wait_for_boot_to_start(Node, Timeout) -> Iterations = Timeout div ?BOOT_STATUS_CHECK_INTERVAL, do_wait_for_boot_to_start(Node, Iterations). |
