Skip to content

Instantly share code, notes, and snippets.

db.createCollection( "email", { storageEngine: {
wiredTiger: { configString: "block_compressor=zlib" }}})
function cleanUpLong(max_running_secs) {
var currentOps = db.currentOp({
$and: [
{ op: "query" },
{ msg: { $exists: false } }, // not a sharding operation!
{ secs_running: { $gt: max_running_secs } },
{"ns": "backstage.action_loc" }
]
});
currentOps.inprog.forEach(function (op) {