You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2021/06/17 18:52:44 UTC
[couchdb] 01/03: Fix mem3_shards shard creation logic
This is an automated email from the ASF dual-hosted git repository.
chewbranca pushed a commit to branch 3631-3.x-fix-pq-shard-creation
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 5dbe3dd85646eb9b5d74b90a63da8db8d6166b10
Author: Russell Branca <ch...@apache.org>
AuthorDate: Thu Jun 17 11:22:14 2021 -0700
Fix mem3_shards shard creation logic
---
src/mem3/src/mem3_shards.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mem3/src/mem3_shards.erl b/src/mem3/src/mem3_shards.erl
index 4f33237..2d7915d 100644
--- a/src/mem3/src/mem3_shards.erl
+++ b/src/mem3/src/mem3_shards.erl
@@ -358,7 +358,8 @@ changes_callback({change, {Change}, _}, _) ->
ets:insert(?OPENERS, {DbName, Writer}),
Msg = {cache_insert_change, DbName, Writer, Seq},
gen_server:cast(?MODULE, Msg),
- [create_if_missing(mem3:name(S), mem3:engine(S)) || S
+ Opts = mem3_util:get_shard_opts(Doc),
+ [create_if_missing(mem3:name(S), Opts) || S
<- Shards, mem3:node(S) =:= node()]
end
end