Permalink
Browse files

Remove assertion when database compaction finishes

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...
1 parent 9d441c5 commit e736fa9e314034e2603ac5861692ddeab92f1dad @fdmanana fdmanana committed with janl Mar 28, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/couchdb/couch_db_updater.erl
@@ -952,7 +952,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 ->

0 comments on commit e736fa9

Please sign in to comment.