Files
mongo/jstests/core/query/server14747.js
Mihai Andrei 05a9f6fe33 SERVER-92931 Move query jstests into 'query' subdirectories (#25775)
GitOrigin-RevId: ea87222af5d2e8528c723533b7afa121cd3b22fa
2024-09-07 03:01:57 +00:00

16 lines
461 B
JavaScript

// Validation test for SERVER-14747. Note that the issue under test is a memory leak, so this
// test would only be expected to fail when run under address sanitizer.
// @tags: [
// assumes_read_concern_local,
// ]
var t = db.jstests_server14747;
t.drop();
t.createIndex({a: 1, b: 1});
// Create descending index to avoid index deduplication.
t.createIndex({a: -1, c: 1});
t.insert({a: 1});
for (var i = 0; i < 10; i++) {
t.find({a: 1}).explain(true);
}