You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/05 00:06:34 UTC

[21/50] couch commit: updated refs/heads/import to c3116d7

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

Branch: refs/heads/import
Commit: c3bc1160e7ba64e2a53639442c1561f687e1022a
Parents: 78a4f42
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Jan 24 01:12:56 2013 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Tue Feb 4 17:03:24 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/c3bc1160/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))