Skip to content

Commit

Permalink
Remove assertion when database compaction finishes
Browse files Browse the repository at this point in the history
Because the task status is updated only if the time elapsed
since the last task status update is greater than some treshold,
the value of the changes_done property might be smaller than
TotalChanges.

Closes COUCHDB-1451
  • Loading branch information
fdmanana authored and janl committed Mar 28, 2012
1 parent 10cddbe commit 9b08d4a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/couchdb/couch_db_updater.erl
Expand Up @@ -954,7 +954,6 @@ copy_compact(Db, NewDb0, Retry) ->
[{start_key, NewDb#db.update_seq + 1}]),

NewDb3 = copy_docs(Db, NewDb2, lists:reverse(Uncopied), Retry),
TotalChanges = couch_task_status:get(changes_done),

% copy misc header values
if NewDb3#db.security /= Db#db.security ->
Expand Down

0 comments on commit 9b08d4a

Please sign in to comment.