diff options
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r-- | db/dbcommands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 31e3d7ee723..80ffbb9cdbb 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -583,7 +583,7 @@ namespace mongo { if ( !mayDeleteIdIndex && d->indexes[i].isIdIndex() ) { idIndex = &d->indexes[i]; } else { - d->indexes[i].kill(); + d->indexes[i].kill_idx(); } } d->nIndexes = 0; @@ -612,7 +612,7 @@ namespace mongo { errmsg = "may not delete _id index"; return false; } - d->indexes[x].kill(); + d->indexes[x].kill_idx(); d->multiKeyIndexBits = removeBit(d->multiKeyIndexBits, x); d->nIndexes--; for ( int i = x; i < d->nIndexes; i++ ) |