Skip to content

Commit

Permalink
Merge pull request #216 from basho/sweeper-develop-merge
Browse files Browse the repository at this point in the history
Merge sweeper code to develop
  • Loading branch information
nickelization committed Jan 4, 2017
2 parents a3edea9 + 6156ab3 commit 4541303
Show file tree
Hide file tree
Showing 13 changed files with 1,476 additions and 1,107 deletions.
6 changes: 4 additions & 2 deletions include/riak_kv_pb.hrl
Expand Up @@ -37,7 +37,8 @@
last_mod_usecs :: non_neg_integer() | undefined, % = 8, 32 bits
usermeta = [] :: [#rpbpair{}], % = 9
indexes = [] :: [#rpbpair{}], % = 10
deleted :: boolean() | 0 | 1 | undefined % = 11
deleted :: boolean() | 0 | 1 | undefined, % = 11
ttl :: non_neg_integer() | undefined % = 12, 32 bits
}).
-endif.

Expand Down Expand Up @@ -105,7 +106,8 @@
datatype :: binary() | undefined, % = 26
consistent :: boolean() | 0 | 1 | undefined, % = 27
write_once :: boolean() | 0 | 1 | undefined, % = 28
hll_precision :: non_neg_integer() | undefined % = 29, 32 bits
hll_precision :: non_neg_integer() | undefined, % = 29, 32 bits
ttl :: non_neg_integer() | undefined % = 30, 32 bits
}).
-endif.

Expand Down
3 changes: 2 additions & 1 deletion include/riak_pb.hrl
Expand Up @@ -54,7 +54,8 @@
datatype :: binary() | undefined, % = 26
consistent :: boolean() | 0 | 1 | undefined, % = 27
write_once :: boolean() | 0 | 1 | undefined, % = 28
hll_precision :: non_neg_integer() | undefined % = 29, 32 bits
hll_precision :: non_neg_integer() | undefined, % = 29, 32 bits
ttl :: non_neg_integer() | undefined % = 30, 32 bits
}).
-endif.

Expand Down
1 change: 1 addition & 0 deletions include/riak_pb_kv_codec.hrl
Expand Up @@ -30,6 +30,7 @@
-define(MD_USERMETA, <<"X-Riak-Meta">>).
-define(MD_INDEX, <<"index">>).
-define(MD_DELETED, <<"X-Riak-Deleted">>).
-define(MD_TTL, <<"X-Riak-TTL">>).

%% Content-Type for Erlang term_to_binary format
-define(CTYPE_ERLANG_BINARY, "application/x-erlang-binary").
Expand Down
3 changes: 2 additions & 1 deletion include/riak_search_pb.hrl
Expand Up @@ -54,7 +54,8 @@
datatype :: binary() | undefined, % = 26
consistent :: boolean() | 0 | 1 | undefined, % = 27
write_once :: boolean() | 0 | 1 | undefined, % = 28
hll_precision :: non_neg_integer() | undefined % = 29, 32 bits
hll_precision :: non_neg_integer() | undefined, % = 29, 32 bits
ttl :: non_neg_integer() | undefined % = 30, 32 bits
}).
-endif.

Expand Down
7 changes: 4 additions & 3 deletions include/riak_ts_pb.hrl
Expand Up @@ -76,7 +76,8 @@
datatype :: binary() | undefined, % = 26
consistent :: boolean() | 0 | 1 | undefined, % = 27
write_once :: boolean() | 0 | 1 | undefined, % = 28
hll_precision :: non_neg_integer() | undefined % = 29, 32 bits
hll_precision :: non_neg_integer() | undefined, % = 29, 32 bits
ttl :: non_neg_integer() | undefined % = 30, 32 bits
}).
-endif.

Expand Down Expand Up @@ -107,7 +108,7 @@
-ifndef('TSCOVERAGEREQ_PB_H').
-define('TSCOVERAGEREQ_PB_H', true).
-record(tscoveragereq,
{'query' :: #tsinterpolation{} | undefined, % = 1
{query :: #tsinterpolation{} | undefined, % = 1
table :: binary(), % = 2
replace_cover :: binary() | undefined, % = 3
unavailable_cover = [] :: [binary()] % = 4
Expand Down Expand Up @@ -258,7 +259,7 @@
-ifndef('TSQUERYREQ_PB_H').
-define('TSQUERYREQ_PB_H', true).
-record(tsqueryreq,
{'query' :: #tsinterpolation{} | undefined, % = 1
{query :: #tsinterpolation{} | undefined, % = 1
stream = false :: boolean() | 0 | 1 | undefined, % = 2
cover_context :: binary() | undefined % = 3
}).
Expand Down
3 changes: 3 additions & 0 deletions src/riak.proto
Expand Up @@ -147,6 +147,9 @@ message RpbBucketProps {

// Hyperlolog DT Precision
optional uint32 hll_precision = 29;

// KV sweeper object expiry time
optional uint32 ttl = 30;
}

// Authentication request
Expand Down
1 change: 1 addition & 0 deletions src/riak_kv.proto
Expand Up @@ -234,6 +234,7 @@ message RpbContent {
repeated RpbPair usermeta = 9; // user metadata stored with the object
repeated RpbPair indexes = 10; // user metadata stored with the object
optional bool deleted = 11;
optional uint32 ttl = 12;
}

// Link metadata
Expand Down

0 comments on commit 4541303

Please sign in to comment.