diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-02 12:02:18 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-11-02 12:02:18 +0000 |
| commit | 802012a6b23271d74445cdfc56f907ada203e20c (patch) | |
| tree | bc5c393c79bfeaf3aea44992729d0da02a39d98a | |
| parent | a80226ec7171a249855daffc52f8d01cd8d8fc8f (diff) | |
| download | rabbitmq-server-git-802012a6b23271d74445cdfc56f907ada203e20c.tar.gz | |
Inlining to prevent running out of disk space by overly long source files
| -rw-r--r-- | src/rabbit_upgrade.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rabbit_upgrade.erl b/src/rabbit_upgrade.erl index 066fe23be7..5373163964 100644 --- a/src/rabbit_upgrade.erl +++ b/src/rabbit_upgrade.erl @@ -48,10 +48,9 @@ maybe_upgrade(Dir) -> G = load_graph(), case unknown_heads(CurrentHeads, G) of [] -> - Upgrades = upgrades_to_apply(CurrentHeads, G), - case Upgrades of - [] -> ok; - _ -> apply_upgrades(Upgrades, Dir) + case upgrades_to_apply(CurrentHeads, G) of + [] -> ok; + Upgrades -> apply_upgrades(Upgrades, Dir) end; Unknown -> [warn("Data store has had future upgrade ~w applied." ++ |
