diff options
author | Dwight <dmerriman@gmail.com> | 2009-07-07 16:43:49 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-07-07 16:43:49 -0400 |
commit | d73d4587ed3f1a3044a47bab67696204a650fe71 (patch) | |
tree | 09d97ad346819bc99b215460e9de59451cef0626 | |
parent | b4f0a2c1fb2d4e45ffa996ec03807a8cd60da2c1 (diff) | |
download | mongo-d73d4587ed3f1a3044a47bab67696204a650fe71.tar.gz |
correct comments MINOR
-rw-r--r-- | db/pdfile.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp index c4ac0d105b5..262e926f752 100644 --- a/db/pdfile.cpp +++ b/db/pdfile.cpp @@ -924,8 +924,6 @@ assert( !eloc.isNull() ); d->paddingTooSmall(); if ( database->profile ) ss << " moved "; - // xxx TODO fix dup key error - old copy should not be deleted - deleteRecord(ns, toupdate, dl); insert(ns, objNew.objdata(), objNew.objsize(), false); return; @@ -951,7 +949,7 @@ assert( !eloc.isNull() ); BSONObj idxKey = idx.info.obj().getObjectField("key"); for ( unsigned i = 0; i < changes[x].added.size(); i++ ) { try { - /* TODO xxx dup keys handle */ + /* we did the dupCheck() above. so we don't have to worry about it here. */ idx.head.btree()->bt_insert( idx.head, dl, *changes[x].added[i], idxKey, /*dupsAllowed*/true, idx); @@ -969,11 +967,6 @@ assert( !eloc.isNull() ); } // update in place - /*if ( addID ) { - ((int&)*toupdate->data) = *((int*) buf) + idOld.size(); - memcpy(toupdate->data+4, idOld.rawdata(), idOld.size()); - memcpy(toupdate->data+4+idOld.size(), ((char *)buf)+4, addID-4); - } else {*/ memcpy(toupdate->data, objNew.objdata(), objNew.objsize()); } |