couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [35/50] git commit: Only use the ddoc cache for sharded dbs
Date Sat, 18 Jan 2014 00:48:00 GMT
Only use the ddoc cache for sharded dbs


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/e21aeb4f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e21aeb4f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/e21aeb4f

Branch: refs/heads/import
Commit: e21aeb4fcf57ee7699bd1cddb5df75421587a84c
Parents: 230a1fa
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Jan 24 01:12:56 2013 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Fri Jan 17 16:44:31 2014 -0800

----------------------------------------------------------------------
 src/couch_db.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/e21aeb4f/src/couch_db.erl
----------------------------------------------------------------------
diff --git a/src/couch_db.erl b/src/couch_db.erl
index f5953a1..5f91633 100644
--- a/src/couch_db.erl
+++ b/src/couch_db.erl
@@ -534,6 +534,7 @@ validate_doc_update_int(Db, Doc, GetDiskDocFun) ->
     end.
 
 
+% to be safe, spawn a middleman here
 load_validation_funs(#db{main_pid=Pid, name = <<"shards/", _/binary>>}=Db) ->
     {_, Ref} = spawn_monitor(fun() ->
         exit(ddoc_cache:open(mem3:dbname(Db#db.name), validation_funs))


Mime
View raw message