summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-01-11 09:54:17 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-01-11 09:54:17 +0000
commit82d5f2c6bf1e38cad407165da97209cdf510eb69 (patch)
tree4470e526dea136dbd7c0195542da7d132c809193
parent128cf8e4a1ad257ebc094379bac30d3e88d4d1dc (diff)
downloadrabbitmq-server-git-82d5f2c6bf1e38cad407165da97209cdf510eb69.tar.gz
start confirm sequence numbering at 1 instead of 0
in order to avoid conflict with special meaning of deliver_tag=0 in basic.ack
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 579d7f4927..930e48e6cd 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -185,7 +185,7 @@ init([Channel, ReaderPid, WriterPid, User, VHost, CollectorPid,
queue_collector_pid = CollectorPid,
stats_timer = StatsTimer,
confirm_enabled = false,
- publish_seqno = 0,
+ publish_seqno = 1,
unconfirmed = gb_sets:new(),
queues_for_msg = dict:new()},
rabbit_event:notify(channel_created, infos(?CREATION_EVENT_KEYS, State)),