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 9d441c5 commit e736fa9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/couchdb/couch_db_updater.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit e736fa9

Please sign in to comment.