summaryrefslogtreecommitdiff
path: root/src/rabbit_backing_queue.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-11-14 14:36:35 +0000
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-11-14 14:36:35 +0000
commitbbe604746948bb799fdd496ffb9d49b62ca148b2 (patch)
tree535b825bd9ce66e4c17389cfaaf94d968f5fa8b2 /src/rabbit_backing_queue.erl
parent12eea5e00a656f2dda3888ff089f7c4d47acb40c (diff)
downloadrabbitmq-server-bbe604746948bb799fdd496ffb9d49b62ca148b2.tar.gz
don't remove rejected message before it is confirmed by the DLQ
Diffstat (limited to 'src/rabbit_backing_queue.erl')
-rw-r--r--src/rabbit_backing_queue.erl11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl
index a80d656d..72c00e3d 100644
--- a/src/rabbit_backing_queue.erl
+++ b/src/rabbit_backing_queue.erl
@@ -97,9 +97,8 @@ behaviour_info(callbacks) ->
%% Drop messages from the head of the queue while the supplied
%% predicate returns true. A callback function is supplied
%% allowing callers access to messages that are about to be
- %% dropped; the callback may publish messages and requires the
- %% next message sequence number, which must also be supplied.
- {dropwhile, 4},
+ %% dropped.
+ {dropwhile, 3},
%% Produce the next message.
{fetch, 2},
@@ -107,10 +106,8 @@ behaviour_info(callbacks) ->
%% Acktags supplied are for messages which can now be forgotten
%% about. Must return 1 msg_id per Ack, in the same order as
%% Acks. A callback function is supplied allowing callers to
- %% access messages that are being acked; the callback may publish
- %% messages and requires the next message sequence number, which
- %% must also be supplied.
- {ack, 4},
+ %% access messages that are being acked.
+ {ack, 3},
%% Reinsert messages into the queue which have already been
%% delivered and were pending acknowledgement.