couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [27/50] chttpd commit: updated refs/heads/master to 58020ab
Date Thu, 28 Aug 2014 11:59:50 GMT
Fix case_clause error with POST to _replicate

We were matching without specifying a default value. Rather than end up
causing other errors we just match on false and default true for all
other values.

BugzId: 24355


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/1cc0ae3a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/1cc0ae3a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/1cc0ae3a

Branch: refs/heads/master
Commit: 1cc0ae3abad982e2d5ae48ee92e7784d30eedf82
Parents: 5d50b2b
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Oct 21 23:57:37 2013 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 30 11:17:44 2014 +0100

----------------------------------------------------------------------
 src/chttpd_misc.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/1cc0ae3a/src/chttpd_misc.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl
index f4a643c..a2719fd 100644
--- a/src/chttpd_misc.erl
+++ b/src/chttpd_misc.erl
@@ -174,7 +174,7 @@ replicate({Props} = PostBody, Ctx) ->
     case couch_util:get_value(<<"cancel">>, Props) of
     true ->
         cancel_replication(PostBody, Ctx);
-    false ->
+    _ ->
         Node = choose_node([
             couch_util:get_value(<<"source">>, Props),
             couch_util:get_value(<<"target">>, Props)


Mime
View raw message