Skip to content

Commit

Permalink
Take timestamp at correct point (after push)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Sep 13, 2023
1 parent 90cc186 commit c9d708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riak_kv_replrtq_snk.erl
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,10 @@ repl_fetcher(WorkItem) ->
{tomb, FetchSplit, PushSplit, ModSplit});
{ok, RObj} ->
SWFetched = os:timestamp(),
{ok, LMD} = riak_client:push(RObj, false, [], LocalClient),
SWPushed = os:timestamp(),
FetchSplit = timer:now_diff(SWFetched, SW),
PushSplit = timer:now_diff(SWPushed, SWFetched),
{ok, LMD} = riak_client:push(RObj, false, [], LocalClient),
ModSplit =timer:now_diff(SWPushed, LMD),
ok = riak_kv_stat:update(ngrrepl_object),
done_work(WorkItem, true,
Expand Down

0 comments on commit c9d708d

Please sign in to comment.