summaryrefslogtreecommitdiff
path: root/jstests/replsets/maintenance2.js
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-05-25 15:24:17 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2018-05-30 09:45:28 -0400
commit190fc58164d3076e1c3a72b7dcca8748dbe40d1f (patch)
tree5ad560c8a3f04618e455620dcf3ceae7d0811cd5 /jstests/replsets/maintenance2.js
parent774af67d1d2115d9a89a45643b42e931bec9aa82 (diff)
downloadmongo-190fc58164d3076e1c3a72b7dcca8748dbe40d1f.tar.gz
SERVER-28524 remove group command
Users should use the aggregation $group stage instead.
Diffstat (limited to 'jstests/replsets/maintenance2.js')
-rw-r--r--jstests/replsets/maintenance2.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/jstests/replsets/maintenance2.js b/jstests/replsets/maintenance2.js
index b2a1dbec38c..8dd17e61a37 100644
--- a/jstests/replsets/maintenance2.js
+++ b/jstests/replsets/maintenance2.js
@@ -39,18 +39,6 @@
var stats = slave.getDB("foo").adminCommand({replSetGetStatus: 1});
assert.eq(stats.myState, 3, "Slave should be in recovering state.");
- print("group should fail in recovering state...");
- slave.slaveOk = true;
- assert.commandFailed(slave.getDB("foo").foo.runCommand({
- group: {
- ns: "foo",
- initial: {n: 0},
- $reduce: function(obj, out) {
- out.n++;
- }
- }
- }));
-
print("count should fail in recovering state...");
slave.slaveOk = true;
assert.commandFailed(slave.getDB("foo").runCommand({count: "foo"}));