0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix some update issues

This commit is contained in:
Eliot Horowitz 2010-01-25 23:26:42 -05:00
parent 8a31ed49aa
commit 969f8dfeda
2 changed files with 2 additions and 2 deletions

View File

@ -616,6 +616,8 @@ namespace mongo {
_keysComputed = true;
_indexKeys.clear();
NamespaceDetails *d = nsdetails(_ns.c_str());
if ( ! d )
return;
NamespaceDetails::IndexIterator i = d->ii();
while( i.more() )
i.next().keyPattern().getFieldNames(_indexKeys);

View File

@ -497,8 +497,6 @@ namespace mongo {
BSONObjIterator jt(j);
Mod::Op op = opFromStr( fn );
if ( op == Mod::INC )
strcpy((char *) fn, "$set"); // rewrite for op log
while ( jt.more() ) {
BSONElement f = jt.next(); // x:44