forked from basho/riak_kv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
riak_kv_vnode.hrl
42 lines (34 loc) · 1.23 KB
/
riak_kv_vnode.hrl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-include_lib("riak_core/include/riak_core_vnode.hrl").
-record(riak_kv_put_req_v1, {
bkey :: {binary(),binary()},
object :: term(),
req_id :: non_neg_integer(),
start_time :: non_neg_integer(),
options :: list()}).
-record(riak_kv_get_req_v1, {
bkey :: {binary(), binary()},
req_id :: non_neg_integer()}).
-record(riak_kv_listkeys_req_v1, {
bucket :: binary(),
req_id :: non_neg_integer()}).
-record(riak_kv_listkeys_req_v2, {
bucket :: binary(),
req_id :: non_neg_integer(),
caller :: pid()}).
-record(riak_kv_delete_req_v1, {
bkey :: {binary(), binary()},
req_id :: non_neg_integer()}).
-record(riak_kv_map_req_v1, {
bkey :: {binary(), binary()},
qterm :: term(),
keydata :: term(),
from :: term()}).
-record(riak_kv_vclock_req_v1, {
bkeys = [] :: [{binary(), binary()}]
}).
-define(KV_PUT_REQ, #riak_kv_put_req_v1).
-define(KV_GET_REQ, #riak_kv_get_req_v1).
-define(KV_LISTKEYS_REQ, #riak_kv_listkeys_req_v2).
-define(KV_DELETE_REQ, #riak_kv_delete_req_v1).
-define(KV_MAP_REQ, #riak_kv_map_req_v1).
-define(KV_VCLOCK_REQ, #riak_kv_vclock_req_v1).