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

fix yield with disk issue in update.cpp SERVER-3633

This commit is contained in:
Eliot Horowitz 2011-08-29 14:38:31 -04:00
parent 75eb7ca39a
commit cba958b223
2 changed files with 9 additions and 1 deletions

View File

@ -1002,7 +1002,12 @@ namespace mongo {
{
// we need to re-find in case something changed
d = nsdetails( ns );
if ( ! d ) {
// dropped
return UpdateResult(0, 0, 0);
}
nsdt = &NamespaceDetailsTransient::get_w(ns);
IndexDetails& i = d->idx(idIdxNo);
BSONObj key = i.getKeyFromQuery( patternOrig );
loc = i.idxInterface().findSingle(i, i.head, key);

View File

@ -190,6 +190,9 @@ namespace mongo {
char * end = data + netLength();
for ( ; addr <= end ; addr += 2048 ) {
__record_touch_dummy += addr[0];
break; // TODO: remove this, pending SERVER-3711
if ( ! entireRecrd )
break;
}