diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-01-12 12:34:28 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-01-12 12:34:28 +0000 |
commit | 68c21a665828b20372376fd427c647bed2ddd884 (patch) | |
tree | b7ee134f556f9da7c8a551d3283d84c3b32bf0d7 | |
parent | 6324a34dab68e8ebad3e84edbcbdcb77bc6cbdfa (diff) | |
download | rabbitmq-server-68c21a665828b20372376fd427c647bed2ddd884.tar.gz |
Logic.
-rw-r--r-- | src/rabbit_variable_queue.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index 3d60d878..b24c5ca2 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -1418,10 +1418,7 @@ needs_index_sync(#vqstate { msg_indices_on_disk = MIOD, %% on a qi sync. Thus the negation of this is sufficient. Because %% is_subset is short circuiting, this is more efficient than the %% subtraction. - case gb_sets:is_empty(UC) of - true -> false; - false -> not gb_sets:is_subset(UC, MIOD) - end. + not (gb_sets:is_empty(UC) orelse gb_sets:is_subset(UC, MIOD)). msgs_confirmed(GuidSet, State) -> {gb_sets:to_list(GuidSet), remove_confirms(GuidSet, State)}. |