Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Forked from bsparrow435/get_put_code.md
Created August 19, 2014 16:51
Show Gist options
  • Select an option

  • Save binarytemple/9e1bb8a82213c3f6404b to your computer and use it in GitHub Desktop.

Select an option

Save binarytemple/9e1bb8a82213c3f6404b to your computer and use it in GitHub Desktop.

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