couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject couchdb-cassim git commit: Treat deleted security docs the same as missing
Date Fri, 24 Apr 2015 00:46:09 GMT
Repository: couchdb-cassim
Updated Branches:
  refs/heads/2657-fix-cassim-fabric-calls 38df06d31 -> 3f15959eb


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/3f15959e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/tree/3f15959e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/diff/3f15959e

Branch: refs/heads/2657-fix-cassim-fabric-calls
Commit: 3f15959eb4a06a132f18f1f0cc4fdc6688a8461c
Parents: 38df06d
Author: Russell Branca <chewbranca@apache.org>
Authored: Fri Apr 24 00:45:17 2015 +0000
Committer: Russell Branca <chewbranca@apache.org>
Committed: Fri Apr 24 00:45:17 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/3f15959e/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