couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [3/3] couchdb-cassim git commit: Treat deleted security docs the same as missing
Date Thu, 21 May 2015 21:08:37 GMT
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 <chewbranca@apache.org>
Authored: Fri Apr 24 00:45:17 2015 +0000
Committer: Russell Branca <chewbranca@apache.org>
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, _}} ->


Mime
View raw message