Skip to content

Commit

Permalink
Updates following review
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Sep 13, 2023
1 parent c9d708d commit df6ac5c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion priv/riak_kv.schema
Original file line number Diff line number Diff line change
Expand Up @@ -1337,13 +1337,20 @@
{default, "q1_ttaaefs:block_rtq"}
]}.

%% @doc Enable this node zlib compress objects over the wire
%% @doc Enable this node to zlib compress objects over the wire
{mapping, "replrtq_compressonwire", "riak_kv.replrtq_compressonwire", [
{datatype, {flag, enabled, disabled}},
{default, disabled},
{commented, enabled}
]}.

%% @doc Enable this node to replicate reap requests to other clusters
{mapping, "repl_reap", "riak_kv.repl_reap", [
{datatype, {flag, enabled, disabled}},
{default, disabled},
{commented, enabled}
]}.

%% @doc Enable this node to act as a sink and consume from a src cluster
{mapping, "replrtq_enablesink", "riak_kv.replrtq_enablesink", [
{datatype, {flag, enabled, disabled}},
Expand Down
5 changes: 5 additions & 0 deletions src/riak_kv_reaper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@

-type reap_reference() ::
{{riak_object:bucket(), riak_object:key()}, vclock:vclock(), boolean()}.
%% the reap reference is {Bucket, Key, Clock (of tombstone), Forward}. The
%% Forward boolean() indicates if this reap should be replicated if
%% riak_kv.repl_reap is true. When a reap is received via replication
%% Forward should be set to false, to prevent reaps from perpetually
%% circulating
-type job_id() :: pos_integer().

-export_type([reap_reference/0, job_id/0]).
Expand Down
2 changes: 1 addition & 1 deletion src/riak_kv_replrtq_snk.erl
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ repl_fetcher(WorkItem) ->
SWPushed = os:timestamp(),
FetchSplit = timer:now_diff(SWFetched, SW),
PushSplit = timer:now_diff(SWPushed, SWFetched),
ModSplit =timer:now_diff(SWPushed, LMD),
ModSplit = timer:now_diff(SWPushed, LMD),
ok = riak_kv_stat:update(ngrrepl_object),
done_work(WorkItem, true,
{object, FetchSplit, PushSplit, ModSplit});
Expand Down

0 comments on commit df6ac5c

Please sign in to comment.