basho/riak_pipe — pull request #32 by beerriot (2011-11-01 16:48:46+00:00)
Title: Use modfun tuples instead of anonymous funs (AZ561)

This is the second half of the migration to modfun tuples for chash and nval Pipe parameters. It includes the first half, which was made on the 1.0 branch for inclusion in 1.0.2. This makes the diff a little awkward, but the important commits in this PR are the last two: d538ca1f and 8cdb6fda.

The `riak_pipe_fun:compat_apply/2` magic was necessary to ensure a stable rolling upgrade for Riak KV's MapReduce pipes. It should be general enough to be used by other functions, if necessary.