You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:10:28 UTC
[43/49] git commit: Add total_changes to view compaction status
Add total_changes to view compaction status
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/e18d3a0b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/e18d3a0b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/e18d3a0b
Branch: refs/heads/import
Commit: e18d3a0b1bcd1ac67d1d3951f240f763f4ea53b4
Parents: 636a0c2
Author: Robert Newson <ro...@cloudant.com>
Authored: Wed Sep 5 00:15:36 2012 +0100
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Wed Mar 20 06:02:50 2013 -0500
----------------------------------------------------------------------
src/couch_mrview_compactor.erl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/e18d3a0b/src/couch_mrview_compactor.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_compactor.erl b/src/couch_mrview_compactor.erl
index 02473e7..1a316fc 100644
--- a/src/couch_mrview_compactor.erl
+++ b/src/couch_mrview_compactor.erl
@@ -148,7 +148,11 @@ compact_view(View, EmptyView, BufferSize, Acc0) ->
update_task(#acc{changes = Changes, total_changes = Total} = Acc, ChangesInc) ->
Changes2 = Changes + ChangesInc,
- couch_task_status:update([{progress, (Changes2 * 100) div Total}]),
+ couch_task_status:update([
+ {changes_done, Changes2},
+ {total_changes, Total},
+ {progress, (Changes2 * 100) div Total}
+ ]),
Acc#acc{changes = Changes2}.