couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r707076 - /incubator/couchdb/trunk/src/couchdb/couch_server.erl
Date Wed, 22 Oct 2008 13:43:08 GMT
Author: jan
Date: Wed Oct 22 06:43:08 2008
New Revision: 707076

URL: http://svn.apache.org/viewvc?rev=707076&view=rev
Log:
Send a notification when a database is created

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_server.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_server.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_server.erl?rev=707076&r1=707075&r2=707076&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_server.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_server.erl Wed Oct 22 06:43:08 2008
@@ -249,6 +249,7 @@
                 true = ets:insert(couch_dbs_by_pid, {MainPid, DbName}),
                 true = ets:insert(couch_dbs_by_lru, {LruTime, DbName}),
                 DbsOpen = Server#server.current_dbs_open + 1,
+                couch_db_update_notifier:notify({created, DbName}),
                 {reply,
                     couch_db:open_ref_counted(MainPid, FromPid), 
                     Server#server{current_dbs_open=DbsOpen}};



Mime
View raw message