diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-02-13 09:56:57 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-02-15 12:41:32 -0500 |
commit | da274cac081409d0edb82901b9c1ad9633f9b1aa (patch) | |
tree | 5b91ebb616e148406cf709b22b82003db5e80552 /src/mongo/dbtests/updatetests.cpp | |
parent | cd299d2c5b00fe869ac0279e7258d352b1bb827e (diff) | |
download | mongo-da274cac081409d0edb82901b9c1ad9633f9b1aa.tar.gz |
SERVER-8173: fix other update tests for new ModSet api
Diffstat (limited to 'src/mongo/dbtests/updatetests.cpp')
-rw-r--r-- | src/mongo/dbtests/updatetests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp index 760c6fde192..0d7a8650e4a 100644 --- a/src/mongo/dbtests/updatetests.cpp +++ b/src/mongo/dbtests/updatetests.cpp @@ -2384,7 +2384,7 @@ namespace UpdateTests { void run() { BSONObj querySpec = BSONObj(); BSONObj modSpec = BSON( "$set" << BSON( "a.$" << 1 ) ); - ModSet modSet( modSpec, set<string>(), NULL, true ); + ModSet modSet( modSpec, IndexPathSet(), true ); // No positional operator validation is performed if a ModSet is 'forReplication'. modSet.prepare( querySpec ); // Does not throw. @@ -2396,7 +2396,7 @@ namespace UpdateTests { void run() { BSONObj querySpec = BSONObj( BSON( "a.b" << 1 ) ); BSONObj modSpec = BSON( "$set" << BSON( "a.$.b.$" << 1 ) ); - ModSet modSet( modSpec, set<string>(), NULL, true ); + ModSet modSet( modSpec, IndexPathSet(), true ); // Attempt to fix the positional operator fields. scoped_ptr<ModSet> fixedMods( modSet.fixDynamicArray( "0" ) ); |