You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2008/10/11 10:23:16 UTC

svn commit: r703637 - /incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl

Author: jchris
Date: Sat Oct 11 01:23:16 2008
New Revision: 703637

URL: http://svn.apache.org/viewvc?rev=703637&view=rev
Log:
db update notification process fix - thanks vmx, davisp, dreid

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

Modified: incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl?rev=703637&r1=703636&r2=703637&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl Sat Oct 11 01:23:16 2008
@@ -52,7 +52,7 @@
     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}.