summaryrefslogtreecommitdiff
path: root/src/fabric_doc_update.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric_doc_update.erl')
-rw-r--r--src/fabric_doc_update.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl
index 9d3cd3d1..77c182f1 100644
--- a/src/fabric_doc_update.erl
+++ b/src/fabric_doc_update.erl
@@ -84,7 +84,7 @@ group_docs_by_shard(DbName, Docs) ->
dict:to_list(lists:foldl(fun(#doc{id=Id} = Doc, D0) ->
lists:foldl(fun(Shard, D1) ->
dict:append(Shard, Doc, D1)
- end, D0, partitions:for_key(DbName,Id))
+ end, D0, mem3:shards(DbName,Id))
end, dict:new(), Docs)).
append_update_replies([], [], DocReplyDict) ->