diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-08-27 07:40:54 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-08-27 07:40:54 +0000 |
commit | d87bcb83439ddd58ebb96abb4cabe911ae868eda (patch) | |
tree | c99fe130b709887bf8571f8ac89f5c18e05f6bb8 /src/couchdb/couch_rep_reader.erl | |
parent | 745dc431376f115e645fadf82526f4e9ac24d4c5 (diff) |
Remove unnecessary call after revision 1162306
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1162307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep_reader.erl')
-rw-r--r-- | src/couchdb/couch_rep_reader.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/couchdb/couch_rep_reader.erl b/src/couchdb/couch_rep_reader.erl index 856699e1..1e8ca074 100644 --- a/src/couchdb/couch_rep_reader.erl +++ b/src/couchdb/couch_rep_reader.erl @@ -255,9 +255,8 @@ reader_loop(ReaderServer, Parent, Source, MissingRevsServer) -> 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], |