correctly rollback a failed index create
This commit is contained in:
@@ -598,7 +598,7 @@ namespace mongo {
|
||||
// delete just one index
|
||||
int x = d->findIndexByName(name);
|
||||
if ( x >= 0 ) {
|
||||
out() << " d->nIndexes was " << d->nIndexes << endl;
|
||||
log(4) << " d->nIndexes was " << d->nIndexes << endl;
|
||||
anObjBuilder.append("nIndexesWas", (double)d->nIndexes);
|
||||
|
||||
/* note it is important we remove the IndexDetails with this
|
||||
|
||||
Reference in New Issue
Block a user