summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-12-02 21:05:52 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2010-12-02 21:05:52 +0000
commit5714b4cd9bbe01309b59978fe2b1c876496d082c (patch)
treea7196d57b5a82848f0c11e2e1b63e0b88c27739e
parent679e90cceeda40de209b1de77f4d056cca4e7f9d (diff)
downloadrabbitmq-server-git-5714b4cd9bbe01309b59978fe2b1c876496d082c.tar.gz
cosmetic: rename field/var
-rw-r--r--src/rabbit_channel.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 3d12004628..0c8ad00ae3 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -49,7 +49,7 @@
uncommitted_ack_q, unacked_message_q,
username, virtual_host, most_recently_declared_queue,
consumer_mapping, blocking, queue_collector_pid, stats_timer,
- confirm_enabled, published_count, confirm_multiple, confirm_tref,
+ confirm_enabled, publish_seqno, confirm_multiple, confirm_tref,
held_confirms, unconfirmed, queues_for_msg}).
-define(MAX_PERMISSION_CACHE_SIZE, 12).
@@ -191,7 +191,7 @@ init([Channel, ReaderPid, WriterPid, Username, VHost, CollectorPid,
queue_collector_pid = CollectorPid,
stats_timer = StatsTimer,
confirm_enabled = false,
- published_count = 0,
+ publish_seqno = 0,
confirm_multiple = false,
held_confirms = gb_sets:new(),
unconfirmed = gb_sets:new(),
@@ -536,11 +536,11 @@ handle_method(#'basic.publish'{exchange = ExchangeNameBin,
{MsgSeqNo, State1}
= case ConfirmEnabled of
false -> {undefined, State};
- true -> Count = State#ch.published_count,
- {Count,
- State#ch{published_count = Count + 1,
+ true -> SeqNo = State#ch.publish_seqno,
+ {SeqNo,
+ State#ch{publish_seqno = SeqNo + 1,
unconfirmed =
- gb_sets:add(Count, State#ch.unconfirmed)}}
+ gb_sets:add(SeqNo, State#ch.unconfirmed)}}
end,
Message = #basic_message{exchange_name = ExchangeName,
routing_key = RoutingKey,