rnewson commented on code in PR #5861:
URL: https://github.com/apache/couchdb/pull/5861#discussion_r2721905169
##########
src/couch_mrview/src/couch_mrview_compactor.erl:
##########
@@ -248,25 +251,30 @@ swap_compacted(OldState, NewState) ->
{ok, Pre} = couch_file:bytes(Fd),
{ok, Post} = couch_file:bytes(NewFd),
- couch_log:notice("Compaction swap for view ~s ~p ~p", [
+ Duration = now() - NewState#mrst.start_time,
+ couch_log:notice("Compaction swap for view ~s ~p ~p ~Bs", [
IndexFName,
Pre,
- Post
+ Post,
+ Duration
Review Comment:
Pre and Post are the file sizes though?
##########
src/couch_mrview/src/couch_mrview_compactor.erl:
##########
@@ -26,6 +26,8 @@
total_changes
}).
+-compile({no_auto_import, [now/0]}).
Review Comment:
sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]