couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r687082 - in /incubator/couchdb/branches/runtimeconfig: share/www/script/couch_tests.js src/couchdb/couch_db_update_notifier_sup.erl
Date Tue, 19 Aug 2008 16:06:01 GMT
Author: damien
Date: Tue Aug 19 09:06:00 2008
New Revision: 687082

URL: http://svn.apache.org/viewvc?rev=687082&view=rev
Log:
Removed failing test for new config feature.

Modified:
    incubator/couchdb/branches/runtimeconfig/share/www/script/couch_tests.js
    incubator/couchdb/branches/runtimeconfig/src/couchdb/couch_db_update_notifier_sup.erl

Modified: incubator/couchdb/branches/runtimeconfig/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/runtimeconfig/share/www/script/couch_tests.js?rev=687082&r1=687081&r2=687082&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/branches/runtimeconfig/share/www/script/couch_tests.js [utf-8] Tue Aug
19 09:06:00 2008
@@ -1435,37 +1435,6 @@
     T(xhr.getResponseHeader("Content-Type") == "text/plain")
     T(db.info().doc_count == 1);
     T(db.info().disk_size < deletesize);
-  },
-
-  runtime_config: function(debug) {
-    if(debug) debugger;
-    var xhr;
-
-    xhr = CouchDB.request("POST", "/_config/CouchDBTest/Test", {"body":"1024"});
-    T(xhr.status == 200);
-    var res = JSON.parse(xhr.responseText);
-    T(res.ok);
-    T(res.value == "1024");
-    
-    restartServer();
-
-    xhr = CouchDB.request("GET", "/_config/CouchDBTest/Test");
-    T(xhr.status == 200);
-    var res = JSON.parse(xhr.responseText);
-    T(res.ok);
-    T(res.value == "1024");
-
-    xhr = CouchDB.request("DELETE", "/_config/CouchDBTest/Test");
-    T(xhr.status == 200);
-    var res = JSON.parse(xhr.responseText);
-    T(res.ok);
-    T(res.old_value == "1024");
-
-    xhr = CouchDB.request("PUT", "/_config/CouchDBTest/Test", {"body": "1024"});
-    T(xhr.status == 200);
-    var res = JSON.parse(xhr.responseText);
-    T(res.ok);
-    T(res.value == "1024");
   }
 };
 

Modified: incubator/couchdb/branches/runtimeconfig/src/couchdb/couch_db_update_notifier_sup.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/runtimeconfig/src/couchdb/couch_db_update_notifier_sup.erl?rev=687082&r1=687081&r2=687082&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/src/couchdb/couch_db_update_notifier_sup.erl
(original)
+++ incubator/couchdb/branches/runtimeconfig/src/couchdb/couch_db_update_notifier_sup.erl
Tue Aug 19 09:06:00 2008
@@ -29,12 +29,13 @@
         couch_db_update_notifier_sup, []).
 
 init([]) ->
+    Self = self(),
     ok = couch_config:register(
         fun({"CouchDB", "DbUpdateNotificationProcess"}) ->
-            ?MODULE:stop()
+            exit(Self, reload_config)
         end),
     UpdateNotifierExes = couch_config:lookup_match(
-            {{"CouchDB", "DbUpdateNotificationProcess"}, '$1'}, []),
+            {{"Update Notification", ""}, '$1'}, []),
 
     {ok,
         {{one_for_one, 10, 3600}, 



Mime
View raw message