- Starting: https://github.com/basho/riak_kv/blob/1.4.2/src/riak_kv_wm_object.erl#L619
- We create a new
riak_objectand populate the various fields with the headers, metadata supplied by the client. - Big suprise, we eventually call
riak_client:put: https://github.com/basho/riak_kv/blob/1.4.2/src/riak_client.erl#L143 - If/when the client returns any errors these are handled in
handle_common_errorsand it is nice to return human readable errors to client :)
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
https://web.archive.org/web/20070429181654/http://www.sics.se/~joe/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f(MostLeaky). | |
| MostLeaky = fun(N) -> | |
| lists:sublist( | |
| lists:usort( | |
| fun({K1,V1},{K2,V2}) -> {V1,K1} =< {V2,K2} end, | |
| [try | |
| {_,Pre} = erlang:process_info(Pid, binary), | |
| erlang:garbage_collect(Pid), | |
| {_,Post} = erlang:process_info(Pid, binary), | |
| {Pid, length(Post)-length(Pre)} |
NewerOlder