diff options
author | Garren Smith <garren.smith@gmail.com> | 2020-03-18 09:39:50 +0200 |
---|---|---|
committer | garren smith <garren.smith@gmail.com> | 2020-04-06 17:55:49 +0200 |
commit | c22d0075df034d7b0bf501ae28a85713233c8f1e (patch) | |
tree | fc35f544b9ad8c3ffa194ef2e357c89a702f319d | |
parent | d520d7331706315968f918c0985e8341c62246e5 (diff) | |
download | couchdb-c22d0075df034d7b0bf501ae28a85713233c8f1e.tar.gz |
fix all_docs call to return row
-rw-r--r-- | src/chttpd/src/chttpd_db.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl index dea992c23..174d46487 100644 --- a/src/chttpd/src/chttpd_db.erl +++ b/src/chttpd/src/chttpd_db.erl @@ -985,7 +985,8 @@ apply_args_to_keylist(Args, Keys0) -> view_cb({row, Row}, {iter, Db, Args, VAcc}) -> NewRow = case lists:keymember(doc, 1, Row) of true -> - chttpd_stats:incr_reads(); + chttpd_stats:incr_reads(), + Row; false when Args#mrargs.include_docs -> {id, DocId} = lists:keyfind(id, 1, Row), chttpd_stats:incr_reads(), |