couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r703637 - /incubator/couchdb/trunk/src/couchdb/couch_db_update_notifier.erl
Date Sat, 11 Oct 2008 08:23:16 GMT
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}.
 



Mime
View raw message