From 2bbe32112f1dc41869bf22ac91a5513a39d8c88e Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sat, 11 Oct 2008 08:23:16 +0000 Subject: 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 --- src/couchdb/couch_db_update_notifier.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}. -- cgit v1.2.3