diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2018-11-07 16:45:09 -0600 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2018-11-07 17:45:09 -0500 |
commit | 096994ba20566cb31f613bfe020ef9059e8a0399 (patch) | |
tree | 6eb182dbfd897a6ff5de05d9f5d2ebeb7a577120 | |
parent | 33c39a9f1d9bfffdefb263953de704e1a5a1b1eb (diff) | |
download | couchdb-096994ba20566cb31f613bfe020ef9059e8a0399.tar.gz |
Fix initial view compaction task status (#1672)
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.erl | 4 |
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( |