You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/29 17:47:13 UTC

[2/2] couch commit: updated refs/heads/master to cb30f6a

don't count sys_dbs in open_databases


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

Branch: refs/heads/master
Commit: cb30f6ac7ee7a52337666bc95a8b82cc558ad785
Parents: b0dd546
Author: Robert Newson <rn...@apache.org>
Authored: Fri Aug 29 16:45:47 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 29 16:46:09 2014 +0100

----------------------------------------------------------------------
 src/couch_db_updater.erl | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/cb30f6ac/src/couch_db_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_db_updater.erl b/src/couch_db_updater.erl
index d8435a5..07518e4 100644
--- a/src/couch_db_updater.erl
+++ b/src/couch_db_updater.erl
@@ -61,7 +61,12 @@ init({DbName, Filepath, Fd, Options}) ->
         end
     end,
     Db = init_db(DbName, Filepath, Fd, Header, Options),
-    couch_stats_process_tracker:track([couchdb, open_databases]),
+    case lists:member(sys_db, Options) of
+        false ->
+            couch_stats_process_tracker:track([couchdb, open_databases]);
+        true ->
+            ok
+    end,
     % we don't load validation funs here because the fabric query is liable to
     % race conditions.  Instead see couch_db:validate_doc_update, which loads
     % them lazily