couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject git commit: Remove assertion when database compaction finishes
Date Wed, 28 Mar 2012 21:20:51 GMT
Updated Branches:
  refs/heads/master 10cddbe91 -> 9b08d4a80


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


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9b08d4a8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9b08d4a8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9b08d4a8

Branch: refs/heads/master
Commit: 9b08d4a80f150daaa2310acca0c3373d9df73b0e
Parents: 10cddbe
Author: Filipe David Borba Manana <fdmanana@apache.org>
Authored: Wed Mar 28 16:34:13 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Mar 28 21:34:57 2012 +0200

----------------------------------------------------------------------
 src/couchdb/couch_db_updater.erl |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/9b08d4a8/src/couchdb/couch_db_updater.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl
index bb22278..0ce3048 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/src/couchdb/couch_db_updater.erl
@@ -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 ->


Mime
View raw message