summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-01-12 12:34:28 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2011-01-12 12:34:28 +0000
commit68c21a665828b20372376fd427c647bed2ddd884 (patch)
treeb7ee134f556f9da7c8a551d3283d84c3b32bf0d7
parent6324a34dab68e8ebad3e84edbcbdcb77bc6cbdfa (diff)
downloadrabbitmq-server-68c21a665828b20372376fd427c647bed2ddd884.tar.gz
Logic.
-rw-r--r--src/rabbit_variable_queue.erl5
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)}.