summaryrefslogtreecommitdiff
path: root/jstests/core/find_and_modify_server6226.js
blob: e99b910e17897bc9bc4289ec40e9ec1c21008cb3 (plain)
1
2
3
4
5
6
7
8
9
(function() {
'use strict';

var t = db.find_and_modify_server6226;
t.drop();

var ret = t.findAndModify({query: {_id: 1}, update: {"$inc": {i: 1}}, upsert: true});
assert.isnull(ret);
})();