couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r998899 - /couchdb/branches/new_replicator/src/couchdb/couch_changes.erl
Date Mon, 20 Sep 2010 11:48:04 GMT
Author: fdmanana
Date: Mon Sep 20 11:48:04 2010
New Revision: 998899

URL: http://svn.apache.org/viewvc?rev=998899&view=rev
Log:
Merged revision 998898 from trunk:

Fix badarity error when the changes timeout is undefined or set	to infinity.

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_changes.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_changes.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_changes.erl?rev=998899&r1=998898&r2=998899&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_changes.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_changes.erl Mon Sep 20 11:48:04 2010
@@ -137,9 +137,9 @@ get_changes_timeout(Args, Callback) ->
     undefined ->
         case Timeout of
         undefined ->
-            {DefaultTimeout, fun() -> stop end};
+            {DefaultTimeout, fun(UserAcc) -> {stop, UserAcc} end};
         infinity ->
-            {infinity, fun() -> stop end};
+            {infinity, fun(UserAcc) -> {stop, UserAcc} end};
         _ ->
             {lists:min([DefaultTimeout, Timeout]),
                 fun(UserAcc) -> {stop, UserAcc} end}



Mime
View raw message