From 111da624f716217fc9180a75f388a025f3c27d1f Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 30 Jun 2009 17:02:24 +0000 Subject: reset stats on POST /_restart and correct open_databases test. Closes COUCHDB-398 I rearranged the shutdown order from what was committed in the 0.9.x branch so that the stats collector is still up when couch_server shuts down. This way the messages to decrement the number of open_databases during the shutdown don't fail with a badarg. The badarg is silently ignored in 0.9.x, but here we pattern match with a true so we end up with lots of error reports. You may see some spurious erlang error reports when running the test suite on an SMP emulator, due to the use of public ets tables in the stats collector API. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@789829 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index dc3edb1f..8a21dd88 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -64,7 +64,7 @@ couchTests.stats = function(debug) { db.createDb(); } - var open_databases = requestStatsTest("couchdb", "open_databases").max; + var open_databases = requestStatsTest("couchdb", "open_databases").current; T(open_databases > 0 && max >= open_databases, name); for(var i=0; i