summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-11-02 13:31:16 -0400
committerEliot Horowitz <eliot@10gen.com>2013-11-02 13:31:16 -0400
commitac7b0f59ee5ee58a27d1927047426a2d0d354e4e (patch)
treeb35e99a962e28352073499e71357e08b3a662d39 /src/mongo/db/ops/delete.cpp
parentf4752b153a3294bd6dfbfb3b626526c7baf7f90e (diff)
downloadmongo-ac7b0f59ee5ee58a27d1927047426a2d0d354e4e.tar.gz
SERVER-11178: index building now all with IndexCatalog, CatalogHack out of all new paths
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r--src/mongo/db/ops/delete.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp
index 86e83463d54..8e276e89e75 100644
--- a/src/mongo/db/ops/delete.cpp
+++ b/src/mongo/db/ops/delete.cpp
@@ -127,7 +127,9 @@ namespace mongo {
// XXX: do we want to buffer docs and delete them in a group rather than
// saving/restoring state repeatedly?
runner->saveState();
- currentClient.get()->database()->getCollection(ns)->deleteDocument(rloc);
+ Collection* collection = currentClient.get()->database()->getCollection(ns);
+ verify( collection );
+ collection->deleteDocument(rloc);
runner->restoreState();
nDeleted++;