This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch view-compaction-duration-fix in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ab83943d1a610abc7df7ce2b78348f8155b408e2 Author: Robert Newson <[email protected]> AuthorDate: Tue Mar 24 11:50:24 2026 +0000 fix view compaction duration logging --- src/couch_mrview/src/couch_mrview_compactor.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/couch_mrview/src/couch_mrview_compactor.erl b/src/couch_mrview/src/couch_mrview_compactor.erl index 601035901..302677a97 100644 --- a/src/couch_mrview/src/couch_mrview_compactor.erl +++ b/src/couch_mrview/src/couch_mrview_compactor.erl @@ -48,7 +48,7 @@ compact(State) -> {EmptyState, NumDocIds} = couch_util:with_db(DbName, fun(Db) -> CompactFName = couch_mrview_util:compaction_file(DbName, Sig), {ok, Fd} = couch_mrview_util:open_file(CompactFName), - ESt = couch_mrview_util:reset_index(Db, Fd, State), + ESt = (couch_mrview_util:reset_index(Db, Fd, State))#mrst{start_time = now_secs()}, {ok, Count} = couch_db:get_doc_count(Db), @@ -129,8 +129,7 @@ compact(State) -> {ok, EmptyState#mrst{ id_btree = NewIdBtree, views = NewViews, - update_seq = Seq, - start_time = now_secs() + update_seq = Seq }}. recompact(State) ->
