diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2019-11-06 10:49:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-06 10:49:37 +0000 |
| commit | 2b3c42ef2ab91af851935eb55baebcab973a5203 (patch) | |
| tree | 05ac228f7bc833cc004c39004d5dd3c97f0ad125 /src/rabbit.erl | |
| parent | 151ad8dd013766554ecae8ef143dc63f44f8d3ab (diff) | |
| parent | 863bc05679ab3a48758d612d5a0b2e2985b08ab2 (diff) | |
| download | rabbitmq-server-git-2b3c42ef2ab91af851935eb55baebcab973a5203.tar.gz | |
Merge pull request #2159 from rabbitmq/rabbitmq-server-2158
Take infinity timeout into account
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). |
