You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/12/19 15:58:31 UTC

[1/2] git commit: Fix build (couch_changes Erlang compilation errors)

Updated Branches:
  refs/heads/1.1.x 5bdd8ae7f -> 65c39616f


Fix build (couch_changes Erlang compilation errors)

Broken in revision 6a04e333663596aba4a4d8889e63459b95ef99ff.


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

Branch: refs/heads/1.1.x
Commit: cd67a2c1ece49ccacd3eaa9d0fc1207e4d3e10d1
Parents: 5bdd8ae
Author: Filipe David Borba Manana <fd...@apache.org>
Authored: Mon Dec 19 14:55:03 2011 +0000
Committer: Filipe David Borba Manana <fd...@apache.org>
Committed: Mon Dec 19 14:56:00 2011 +0000

----------------------------------------------------------------------
 src/couchdb/couch_changes.erl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/cd67a2c1/src/couchdb/couch_changes.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_changes.erl b/src/couchdb/couch_changes.erl
index b89f4d2..95c5d82 100644
--- a/src/couchdb/couch_changes.erl
+++ b/src/couchdb/couch_changes.erl
@@ -16,17 +16,17 @@
 -export([handle_changes/3]).
 
 %% @type Req -> #httpd{} | {json_req, JsonObj()}
-handle_changes(#changes_args{style=Style}=Args1, Req, Db) ->
+handle_changes(#changes_args{style=Style}=Args1, Req, Db0) ->
     #changes_args{feed = Feed} = Args = Args1#changes_args{
-        filter = make_filter_fun(Args1#changes_args.filter, Style, Req, Db)
+        filter = make_filter_fun(Args1#changes_args.filter, Style, Req, Db0)
     },
     Start = fun() ->
         {ok, Db} = couch_db:reopen(Db0),
-        StartSeq = case Dir of
+        StartSeq = case Args#changes_args.dir of
         rev ->
             couch_db:get_update_seq(Db);
         fwd ->
-            Since
+            Args#changes_args.since
         end,
         {Db, StartSeq}
     end,