summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2010-05-04 18:55:21 +0100
committerMatthias Radestock <matthias@lshift.net>2010-05-04 18:55:21 +0100
commit7efb98f5dc25bf21c47c1c438728b816afb29803 (patch)
tree4120550cb77e6ef8d1ba96d0e8f2e9e7127b304c
parent4ea87dc8437d84bba51b8ea81f902549b845d71b (diff)
downloadrabbitmq-server-git-7efb98f5dc25bf21c47c1c438728b816afb29803.tar.gz
oops
-rw-r--r--src/rabbit_variable_queue.erl15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index 6895700cc2..c5f18a9462 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -897,18 +897,17 @@ should_force_index_to_disk(State =
msg_store_callback(PersistentGuids, IsTransientPubs, Pubs, AckTags, Fun) ->
Self = self(),
- Fun = fun () -> rabbit_amqqueue:maybe_run_queue_via_backing_queue(
- Self, fun (StateN) -> tx_commit_post_msg_store(
- IsTransientPubs, Pubs,
- AckTags, Fun, StateN)
- end)
- end,
+ F = fun () -> rabbit_amqqueue:maybe_run_queue_via_backing_queue(
+ Self, fun (StateN) -> tx_commit_post_msg_store(
+ IsTransientPubs, Pubs,
+ AckTags, Fun, StateN)
+ end)
+ end,
fun () -> spawn(fun () -> ok = rabbit_misc:with_exit_handler(
fun () -> rabbit_msg_store:remove(
?PERSISTENT_MSG_STORE,
PersistentGuids)
- end,
- Fun)
+ end, F)
end)
end.