summaryrefslogtreecommitdiff
path: root/jstests/sharding/sync8.js
blob: 241ad6555697848b366c9fd7ebf472d3bf358403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test for SERVER-11492 - make sure that upserting a new document reports n:1 in GLE

var test = new SyncCCTest( "sync1" );

var db = test.conn.getDB( "test" );
var t = db.sync8;
t.remove({});

t.update({_id:1}, {$set:{a:1}}, true);
var le = db.getLastErrorObj();
assert.eq(1, le.n);

test.stop();