diff options
| author | Matthew Sackman <matthew@lshift.net> | 2010-01-25 16:08:00 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2010-01-25 16:08:00 +0000 |
| commit | 4169d8a6457945c78a97e25e3601f9162a4fc270 (patch) | |
| tree | ef344d3aead2c7d7f9c2423e431d2dbe05ebaea4 /src | |
| parent | 739d37737f7d9a668010a49784c1151336062faa (diff) | |
| download | rabbitmq-server-git-4169d8a6457945c78a97e25e3601f9162a4fc270.tar.gz | |
There's the possibility that the timer may fire whilst we're doing the vq sync callback thus leading to a 2nd call to that, hence specialising a noop clause
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_variable_queue.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index 89493b5ef5..0dbec1e829 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -540,6 +540,8 @@ tx_commit_from_msg_store(Pubs, AckTags, From, [Pubs | SPubs], [From | SFroms] }}. +tx_commit_from_vq(State = #vqstate { on_sync = {_, _, []} }) -> + State; tx_commit_from_vq(State = #vqstate { on_sync = {SAcks, SPubs, SFroms} }) -> State1 = ack(lists:flatten(SAcks), State), {PubSeqIds, State2 = #vqstate { index_state = IndexState }} = |
