Skip to content

Instantly share code, notes, and snippets.

@martinsumner
Forked from bsparrow435/get_put_code.md
Created January 18, 2018 17:05
Show Gist options
  • Save martinsumner/f10a44743d66e70484ad99056d698762 to your computer and use it in GitHub Desktop.
Save martinsumner/f10a44743d66e70484ad99056d698762 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