summaryrefslogtreecommitdiff
path: root/db/dbcommands.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-19 16:53:58 -0400
committerDwight <dmerriman@gmail.com>2009-10-19 16:53:58 -0400
commita606c7a6b8dc211960b064a6203dc822956f5471 (patch)
treedb204e0b743e54087753d8a9871acda8235510c8 /db/dbcommands.cpp
parent91328adb2d2a60b788547e95d9f7825c6370780a (diff)
downloadmongo-a606c7a6b8dc211960b064a6203dc822956f5471.tar.gz
cleanup/prep for # of indexes work
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r--db/dbcommands.cpp4
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++ )