summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-06-30 17:02:24 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-06-30 17:02:24 +0000
commit111da624f716217fc9180a75f388a025f3c27d1f (patch)
tree23c20fb1fed5d3cb9dfea998bd3e559b5b4ebeb0 /share/www/script
parent57326fb4942281109d21fef403f51867c8f984f7 (diff)
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
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/stats.js2
1 files changed, 1 insertions, 1 deletions
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<max+1; i++) {