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/08/27 09:40:54 UTC

svn commit: r1162307 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl

Author: fdmanana
Date: Sat Aug 27 07:40:54 2011
New Revision: 1162307

URL: http://svn.apache.org/viewvc?rev=1162307&view=rev
Log:
Remove unnecessary call after revision 1162306

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl?rev=1162307&r1=1162306&r2=1162307&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_rep_reader.erl Sat Aug 27 07:40:54 2011
@@ -255,9 +255,8 @@ reader_loop(ReaderServer, Parent, Source
                 infinity) || {Id,Seq,Revs} <- SortedIdsRevs],
             reader_loop(ReaderServer, Parent, Source, MissingRevsServer);
         _Local ->
-            {ok, Source1} = gen_server:call(Parent, get_source_db, infinity),
             {ok, Source2} = couch_db:open(
-                Source1#db.name, [{user_ctx, Source1#db.user_ctx}]),
+                Source#db.name, [{user_ctx, Source#db.user_ctx}]),
             lists:foreach(fun({Id,Seq,Revs}) ->
                 {ok, Docs} = couch_db:open_doc_revs(Source2, Id, Revs, [latest]),
                 JustTheDocs = [Doc || {ok, Doc} <- Docs],