This is a Riak storage backend that uses WiredTiger, an Erlang interface to the WiredTiger k/v pair storage engine, and an abstract async thread-pool layer for Erlang's NIF API called
c_src/async_nif.h
.
99a51980eb
In order to reduce the number of wiredtiger session open/close calls, open a session at startup and keep it in the kv backend state. This is safe as far as using these sessions on scheduler threads goes because the riak_kv_vnode fsm serializes all calls through the backend, so we'll never have a case of multiple scheduler threads concurrently trying to use the same session. |
||
---|---|---|
c_src | ||
src | ||
.gitignore | ||
Makefile | ||
rebar | ||
rebar.config |