You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/10/22 15:43:08 UTC

svn commit: r707076 - /incubator/couchdb/trunk/src/couchdb/couch_server.erl

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}};