Files
mongo/jstests/core/apply_ops_without_ns.js
2019-07-27 11:02:23 -04:00

15 lines
402 B
JavaScript

// @tags: [
// requires_non_retryable_commands,
//
// # applyOps uses the oplog that require replication support
// requires_replication,
// ]
(function() {
'use strict';
// SERVER-33854: This should fail and not cause any invalid memory access.
assert.commandFailed(db.adminCommand(
{applyOps: [{'op': 'c', 'ns': 'admin.$cmd', 'o': {applyOps: [{'op': 'i', 'o': {x: 1}}]}}]}));
})();