Skip to content

Instantly share code, notes, and snippets.

@lukebakken
Last active January 2, 2016 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebakken/8287365 to your computer and use it in GitHub Desktop.
Save lukebakken/8287365 to your computer and use it in GitHub Desktop.
Erlang Study Group - Riak Code Samples

erlang-study

Notes / examples from Programming Erlang with emphasis on Riak

Page Code Method Source
4 spawn() pmap() https://github.com/basho/riak_core/blob/develop/src/riak_core_util.erl#L302
5 Pid ! Msg pmap() https://github.com/basho/riak_core/blob/develop/src/riak_core_util.erl#L302
6 receive / end loop() https://github.com/basho/riak_core/blob/develop/src/riak_core_gen_server.erl#L423
6 receive / end do_multi_call() https://github.com/basho/riak_core/blob/develop/src/riak_core_gen_server.erl#L521
15 receive / end pmap() https://github.com/basho/riak_core/blob/develop/src/riak_core_util.erl#L302
28 -16#80000000 encode_internal() https://github.com/basho/erlang_protobuffs/blob/develop/src/protobuffs.erl#L94
35 tagged tuple handle_call() https://github.com/basho/riak_core/blob/develop/src/riak_core_ring_manager.erl#L384
36 extract tuple value do_write_ringfile() https://github.com/basho/riak_core/blob/develop/src/riak_core_ring_manager.erl#L226
37 list literal back_test() https://github.com/basho/riak_core/blob/develop/src/riak_core_ring_manager.erl#L638
38 list head/tail prune_list() https://github.com/basho/riak_core/blob/develop/src/riak_core_ring_manager.erl#L638
39 list element extract gen_range() https://github.com/basho/riak_core/blob/develop/src/riak_core_repair.erl#L76
53 fun standard_remove https://github.com/basho/riak_core/blob/develop/src/riak_core.erl#L194
60 list comprehension process_response https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L1739
64 guard join https://github.com/basho/riak_core/blob/develop/src/riak_core.erl#L67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment