summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2018-10-22 09:57:18 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2018-10-22 09:57:18 -0500
commit6f3b030348387f29b4aa64ce9b79716d09e860ed (patch)
treee412bbbf7aeff14b2929800c84ef43800bcc0837
parent0408ccc44514a6d1f20cedacb4635e614cf94fb0 (diff)
downloadcouchdb-fix-view-compactor-task-status.tar.gz
Fix initial view compaction task statusfix-view-compactor-task-status
This is a minor consistency issue. Currently when a view compaction starts it doesn't include the `total_changes` and `changes_done` fields until the first task status update. This is easy to miss as every other task type includes those fields from the initial task definition. The obvious trivial fix is both obvious and trivial.
-rw-r--r--src/couch_mrview/src/couch_mrview_compactor.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/couch_mrview/src/couch_mrview_compactor.erl b/src/couch_mrview/src/couch_mrview_compactor.erl
index 3ef11805f..9a069cec0 100644
--- a/src/couch_mrview/src/couch_mrview_compactor.erl
+++ b/src/couch_mrview/src/couch_mrview_compactor.erl
@@ -86,7 +86,9 @@ compact(State) ->
{type, view_compaction},
{database, DbName},
{design_document, IdxName},
- {progress, 0}
+ {progress, 0},
+ {changes_done, 0},
+ {total_changes, TotalChanges}
]),
BufferSize0 = config:get(