summaryrefslogtreecommitdiff
path: root/jstests/sharding/aggregation_currentop.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/aggregation_currentop.js')
-rw-r--r--jstests/sharding/aggregation_currentop.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/sharding/aggregation_currentop.js b/jstests/sharding/aggregation_currentop.js
index 1a0d4b72281..dce4cf5482f 100644
--- a/jstests/sharding/aggregation_currentop.js
+++ b/jstests/sharding/aggregation_currentop.js
@@ -19,6 +19,7 @@
"use strict";
load("jstests/libs/fixture_helpers.js"); // For FixtureHelpers.
+ load("jstests/libs/namespace_utils.js"); // For getCollectionNameFromFullNamespace.
// Replica set nodes started with --shardsvr do not enable key generation until they are added
// to a sharded cluster and reject commands with gossiped clusterTime from users without the
@@ -196,10 +197,6 @@
awaitShell();
}
- function getCollectionNameFromFullNamespace(ns) {
- return ns.split(/\.(.+)/)[1];
- }
-
// Generic function for running getMore on a $currentOp aggregation cursor and returning the
// command response.
function getMoreTest({conn, curOpSpec, getMoreBatchSize}) {