blob: ba7820b24635a280360f927fcd2ecff41d662db1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* Tests that a collection with a clustered index can use and interpret a query hint.
* @tags: [
* requires_fcv_53,
* # Does not support sharding
* assumes_against_mongod_not_mongos,
* assumes_unsharded_collection,
* requires_non_retryable_writes,
* ]
*/
(function() {
"use strict";
load("jstests/libs/clustered_collections/clustered_collection_util.js");
load("jstests/libs/clustered_collections/clustered_collection_hint_common.js");
const replicatedDB = db.getSiblingDB(jsTestName());
const collName = "coll";
const replicatedColl = replicatedDB[collName];
testClusteredCollectionHint(replicatedColl, {_id: 1}, "_id_");
})();
|