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:
parent
8a31ed49aa
commit
969f8dfeda
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user