summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-04-08 20:09:17 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-04-08 20:09:17 +0100
commit97b52fc91d35f5d7a2bb33b3ad7a8a8a5f8a0673 (patch)
treed0d4d165964ed733b9660e7d6c581a10530cb2a2 /src
parentfaf1e5b490bcc2dd33f48f9f2f4a87c811d4e67a (diff)
downloadrabbitmq-server-git-97b52fc91d35f5d7a2bb33b3ad7a8a8a5f8a0673.tar.gz
cosmetic: update comment on table_filter
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_misc.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 87181c2453..cec10ff609 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -460,9 +460,8 @@ map_in_order(F, L) ->
lists:reverse(
lists:foldl(fun (E, Acc) -> [F(E) | Acc] end, [], L)).
-%% Fold over each entry in a table, executing the pre-post-commit function in a
-%% transaction. This is often far more efficient than wrapping a tx
-%% around the lot.
+%% Apply a pre-post-commit function to all entries in a table that
+%% satisfy a predicate, and return those entries.
%%
%% We ignore entries that have been modified or removed.
table_filter(Pred, PrePostCommitFun, TableName) ->