Skip to content

Instantly share code, notes, and snippets.

@binarytemple-external
Forked from bsparrow435/get_put_code.md
Created October 3, 2016 11:16
Show Gist options
  • Save binarytemple-external/c492f26f96397c6e68ed3f0ddf33b378 to your computer and use it in GitHub Desktop.
Save binarytemple-external/c492f26f96397c6e68ed3f0ddf33b378 to your computer and use it in GitHub Desktop.
Get/Put path walk through

Put

API

Riak_client

FSM

Setup

Coordination

Riak_kv_put_core

Finalize

Vnode

Coordinating Put

Normal Put

  • Exactly the same as coordinating PUT except it does not have the coord option set. This operation is run on the remaining vnodes in the preflist after the coordinating put has been succesful.
  • The main operations are do_put and prepare_put which eventually calls Mod:put responding back to the FSM before and after sending the put to the backend.

Backend

Riak_kv_bitcask_backend

Riak_kv_eleveldb_backend

Riak_kv_memory_backend

Riak_kv_multi_backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment