From c9d708db4ca3990c685ac82dcd5df48e05443b72 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Wed, 13 Sep 2023 10:05:28 +0100 Subject: [PATCH] Take timestamp at correct point (after push) --- src/riak_kv_replrtq_snk.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riak_kv_replrtq_snk.erl b/src/riak_kv_replrtq_snk.erl index 148c3008a..3c12fb37f 100644 --- a/src/riak_kv_replrtq_snk.erl +++ b/src/riak_kv_replrtq_snk.erl @@ -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,