summaryrefslogtreecommitdiff
path: root/src/fabric_db_doc_count.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric_db_doc_count.erl')
-rw-r--r--src/fabric_db_doc_count.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fabric_db_doc_count.erl b/src/fabric_db_doc_count.erl
index 4c3a72d5..c587d103 100644
--- a/src/fabric_db_doc_count.erl
+++ b/src/fabric_db_doc_count.erl
@@ -5,7 +5,7 @@
-include("fabric.hrl").
go(DbName) ->
- Shards = partitions:all_parts(DbName),
+ Shards = mem3:shards(DbName),
Workers = fabric_util:submit_jobs(Shards, get_doc_count, []),
Acc0 = {length(Workers), [{Beg,nil} || #shard{range=[Beg,_]} <- Workers]},
fabric_util:recv(Workers, #shard.ref, fun handle_message/3, Acc0).