From c6361aa24b6974ad1f89841ccfe6711f5323a588 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 22 Apr 2010 18:26:42 +0000 Subject: compaction preserves instance_start_time. Closes COUCHDB-744 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@936996 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/compact.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/www/script/test/compact.js') diff --git a/share/www/script/test/compact.js b/share/www/script/test/compact.js index f63bfc57..6a48992b 100644 --- a/share/www/script/test/compact.js +++ b/share/www/script/test/compact.js @@ -31,6 +31,7 @@ couchTests.compact = function(debug) { T(db.save(binAttDoc).ok); var originalsize = db.info().disk_size; + var start_time = db.info().instance_start_time; for(var i in docs) { db.deleteDoc(docs[i]); @@ -43,6 +44,7 @@ couchTests.compact = function(debug) { 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.ensureFullCommit().ok); restartServer(); -- cgit v1.2.3