Treat deleted security docs the same as missing The same logic to migrate new security docs works as well for deleted docs.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/commit/c6581f8e Tree: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/tree/c6581f8e Diff: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/diff/c6581f8e Branch: refs/heads/2657-fix-cassim-fabric-calls Commit: c6581f8e862f331c175d969b4102292aa1b5646e Parents: 543fc77 Author: Russell Branca <[email protected]> Authored: Fri Apr 24 00:45:17 2015 +0000 Committer: Russell Branca <[email protected]> Committed: Thu May 21 21:07:51 2015 +0000 ---------------------------------------------------------------------- src/cassim_metadata_cache.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/c6581f8e/src/cassim_metadata_cache.erl ---------------------------------------------------------------------- diff --git a/src/cassim_metadata_cache.erl b/src/cassim_metadata_cache.erl index 12f2a06..002ee43 100644 --- a/src/cassim_metadata_cache.erl +++ b/src/cassim_metadata_cache.erl @@ -198,7 +198,7 @@ load_meta_from_db(DbName, MetaId) -> {ok, {ok, #doc{}=Doc}} -> couch_doc:to_json_obj(Doc, []); {ok, {not_found, deleted}} -> - deleted; + undefined; {ok, {not_found, missing}} -> undefined; {error, {database_does_not_exist, _}} ->
