diff options
| author | Matthew Sackman <matthew@lshift.net> | 2010-04-09 18:01:40 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2010-04-09 18:01:40 +0100 |
| commit | e8983d647d5fc4d817a2e108679fb6cfee35b03d (patch) | |
| tree | 1b363b23e75a7289f7e216912c5b5a936dfa7fe5 /src | |
| parent | 62a67bbe688bc5ce5aa0400da25a89fb9e852acb (diff) | |
| parent | 14333df08bbb986c982fdf7a908cbb1cc1fc2ff9 (diff) | |
| download | rabbitmq-server-git-e8983d647d5fc4d817a2e108679fb6cfee35b03d.tar.gz | |
Merging default into bug 21673
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_channel.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index e4b20f6b98..51eb93c5cf 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -383,11 +383,12 @@ handle_method(#'basic.publish'{exchange = ExchangeNameBin, %% We decode the content's properties here because we're almost %% certain to want to look at delivery-mode and priority. DecodedContent = rabbit_binary_parser:ensure_content_decoded(Content), + IsPersistent = is_message_persistent(DecodedContent), Message = #basic_message{exchange_name = ExchangeName, routing_key = RoutingKey, content = DecodedContent, guid = rabbit_guid:guid(), - is_persistent = is_message_persistent(DecodedContent)}, + is_persistent = IsPersistent}, {RoutingRes, DeliveredQPids} = rabbit_exchange:publish( Exchange, |
