couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r952732 - in /couchdb/trunk: share/www/script/test/compact.js src/couchdb/couch_db_updater.erl
Date Tue, 08 Jun 2010 16:50:58 GMT
Author: kocolosk
Date: Tue Jun  8 16:50:58 2010
New Revision: 952732

URL: http://svn.apache.org/viewvc?rev=952732&view=rev
Log:
preserve _revs_limit after compaction. COUCHDB-789

Modified:
    couchdb/trunk/share/www/script/test/compact.js
    couchdb/trunk/src/couchdb/couch_db_updater.erl

Modified: couchdb/trunk/share/www/script/test/compact.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/compact.js?rev=952732&r1=952731&r2=952732&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/compact.js (original)
+++ couchdb/trunk/share/www/script/test/compact.js Tue Jun  8 16:50:58 2010
@@ -39,12 +39,14 @@ couchTests.compact = function(debug) {
   T(db.ensureFullCommit().ok);
   var deletesize = db.info().disk_size;
   T(deletesize > originalsize);
+  T(db.setDbProperty("_revs_limit", 666).ok);
 
   T(db.compact().ok);
   T(db.last_req.status == 202);
   // compaction isn't instantaneous, loop until done
   while (db.info().compact_running) {};
   T(db.info().instance_start_time == start_time);
+  T(db.getDbProperty("_revs_limit") === 666);
 
   T(db.ensureFullCommit().ok);
   restartServer();

Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db_updater.erl?rev=952732&r1=952731&r2=952732&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db_updater.erl Tue Jun  8 16:50:58 2010
@@ -165,7 +165,8 @@ handle_cast({compact_done, CompactFilepa
             local_docs_btree = NewLocalBtree,
             main_pid = Db#db.main_pid,
             filepath = Filepath,
-            instance_start_time = Db#db.instance_start_time
+            instance_start_time = Db#db.instance_start_time,
+            revs_limit = Db#db.revs_limit
         }),
 
         ?LOG_DEBUG("CouchDB swapping files ~s and ~s.",



Mime
View raw message