summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-10-22 13:43:08 +0000
committerJan Lehnardt <jan@apache.org>2008-10-22 13:43:08 +0000
commit3c9fd44fc9c33c9e2c485c3b24f80fc341c9a14d (patch)
treef498c40f2a1578f4918d255ea1741a8f616638aa /src/couchdb
parent50decd4044bb8fcfd22c485e064a11d63fa15a2d (diff)
Send a notification when a database is created
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@707076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_server.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_server.erl b/src/couchdb/couch_server.erl
index 8363d4a1..02a2fbe4 100644
--- a/src/couchdb/couch_server.erl
+++ b/src/couchdb/couch_server.erl
@@ -249,6 +249,7 @@ handle_call({create, DbName, Options}, {FromPid,_}, Server) ->
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}};