We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf37887 commit a6fe336Copy full SHA for a6fe336
1 file changed
bin/scripts/sharding/sharding.js
@@ -58,9 +58,9 @@ check.forEach(function(c) {
58
var exceptional = true;
59
var db = clyCollections.indexOf(c) === -1 ? drill : cly,
60
dbName = clyCollections.indexOf(c) === -1 ? COUNTLY_DRILL : COUNTLY,
61
- count = db[c].count(),
62
- capped = db[c].stats()['capped'];
63
-
+ //count = db[c].count(), -- This is deprecated in mongo version >6
+ count = db[c].countDocuments({});
+ var capped = db[c].stats()['capped'];
64
COUNTLY_TO_SHARD.some((e) => {
65
if (c.indexOf(e) == 0) {
66
exceptional = false;
0 commit comments