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 2018/07/19 19:24:43 UTC

[couchdb] branch user-partitioned-dbs-wip updated (da9e00f -> 422e03e)

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a change to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


    from da9e00f  support reduce results in partitioned dbs
     new 8fcb91d  remove unused variable
     new 422e03e  system dbs are not partitioned

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/couch/src/couch_db_updater.erl | 1 -
 src/mem3/src/mem3.erl              | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)


[couchdb] 01/02: remove unused variable

Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 8fcb91d164207ec187e57329ca9a05424f4acff0
Author: Robert Newson <rn...@apache.org>
AuthorDate: Thu Jul 19 12:35:45 2018 +0100

    remove unused variable
---
 src/couch/src/couch_db_updater.erl | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index 59f4ee5..fba99a7 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -27,7 +27,6 @@ init({Engine, DbName, FilePath, Options0}) ->
     erlang:put(io_priority, {db_update, DbName}),
     update_idle_limit_from_config(),
     DefaultSecObj = default_security_object(DbName),
-    Partitioned = lists:member(partitioned, Options0),
     Options = [{default_security_object, DefaultSecObj} | Options0],
     try
         {ok, EngineState} = couch_db_engine:init(Engine, FilePath, Options),


[couchdb] 02/02: system dbs are not partitioned

Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 422e03e8aa6f4b51d03da151fee5cedf3427f918
Author: Robert Newson <rn...@apache.org>
AuthorDate: Thu Jul 19 12:46:57 2018 +0100

    system dbs are not partitioned
---
 src/mem3/src/mem3.erl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mem3/src/mem3.erl b/src/mem3/src/mem3.erl
index d79e904..737344b 100644
--- a/src/mem3/src/mem3.erl
+++ b/src/mem3/src/mem3.erl
@@ -337,6 +337,9 @@ engine(Opts) when is_list(Opts) ->
             []
     end.
 
+is_partitioned(<<"_", _/binary>>) ->
+    %% system dbs are never partitioned.
+    false;
 is_partitioned(DbName0) when is_binary(DbName0) ->
     DbName = dbname(DbName0),
     is_partitioned(mem3:shards(DbName));