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 <[email protected]>
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));

Reply via email to