diff options
author | Robert Newson <rnewson@apache.org> | 2011-05-26 19:00:19 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2011-05-26 19:00:19 +0000 |
commit | 7c719fe3b113f03e37aced91ab28957e2c4aeab3 (patch) | |
tree | 8e052942e4c687d134695f1dda6d79d010cf9cf2 /src/couchdb | |
parent | 052284d890277ebe27fc4dea06636669484f4586 (diff) |
COUCHDB-1178 - fix make_first_doc_on_disk function_clause error
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1128039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_db.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 1e7addaf..40d84618 100644 --- a/src/couchdb/couch_db.erl +++ b/src/couchdb/couch_db.erl @@ -733,6 +733,8 @@ update_docs(Db, Docs, Options, interactive_edit) -> % for the doc. make_first_doc_on_disk(_Db, _Id, _Pos, []) -> nil; +make_first_doc_on_disk(Db, Id, Pos, [{_Rev, #doc{}} | RestPath]) -> + make_first_doc_on_disk(Db, Id, Pos-1, RestPath); make_first_doc_on_disk(Db, Id, Pos, [{_Rev, ?REV_MISSING}|RestPath]) -> make_first_doc_on_disk(Db, Id, Pos - 1, RestPath); make_first_doc_on_disk(Db, Id, Pos, [{_Rev, {IsDel, Sp, _Seq}} |_]=DocPath) -> |