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 19:34:33 GMT
Updated Branches:
  refs/heads/1.2.x 9d441c544 -> e736fa9e3


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/e736fa9e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e736fa9e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e736fa9e

Branch: refs/heads/1.2.x
Commit: e736fa9e314034e2603ac5861692ddeab92f1dad
Parents: 9d441c5
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:12 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/e736fa9e/src/couchdb/couch_db_updater.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl
index eaf1bd3..88eb4a0 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/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 ->


Mime
View raw message