summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_db_update_notifier.erl
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-10-11 08:23:16 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-10-11 08:23:16 +0000
commit2bbe32112f1dc41869bf22ac91a5513a39d8c88e (patch)
tree670b2e3465ad5498a8be33c812d011205ba6c2df /src/couchdb/couch_db_update_notifier.erl
parent629d1130c01681342204533f3e9e4cc86389beb8 (diff)
db update notification process fix - thanks vmx, davisp, dreid
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@703637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db_update_notifier.erl')
-rw-r--r--src/couchdb/couch_db_update_notifier.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db_update_notifier.erl b/src/couchdb/couch_db_update_notifier.erl
index 449da356..f2f0342c 100644
--- a/src/couchdb/couch_db_update_notifier.erl
+++ b/src/couchdb/couch_db_update_notifier.erl
@@ -52,7 +52,7 @@ handle_event(Event, {Fun, FunAcc}) ->
FunAcc2 = Fun(Event, FunAcc),
{ok, {Fun, FunAcc2}};
handle_event({EventAtom, DbName}, Port) ->
- Obj = {[{type, atom_to_list(EventAtom)}, {db, DbName}]},
+ Obj = {[{type, list_to_binary(atom_to_list(EventAtom))}, {db, DbName}]},
true = port_command(Port, ?JSON_ENCODE(Obj) ++ "\n"),
{ok, Port}.