diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-02-04 18:26:04 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-02-04 18:26:04 -0500 |
commit | eeeeb04e683e1a6b8293a6efe87ee5dfb7e75c11 (patch) | |
tree | 3833f8f52d6828314419b2ae8bd85cb105dbcd55 | |
parent | 34b7d4013ec098761a52712e49c1458fb998f67f (diff) | |
download | mongo-eeeeb04e683e1a6b8293a6efe87ee5dfb7e75c11.tar.gz |
SERVER-16097 invariant(_collection) in DeleteStage::doRestoreState().
A plan stage should only yield if the collection exists.
-rw-r--r-- | src/mongo/db/exec/delete.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/exec/delete.cpp b/src/mongo/db/exec/delete.cpp index 3e5ece8d4d7..ed0dcd80761 100644 --- a/src/mongo/db/exec/delete.cpp +++ b/src/mongo/db/exec/delete.cpp @@ -260,6 +260,7 @@ PlanStage::StageState DeleteStage::doWork(WorkingSetID* out) { } void DeleteStage::doRestoreState() { + invariant(_collection); const NamespaceString& ns(_collection->ns()); massert(28537, str::stream() << "Demoted from primary while removing from " << ns.ns(), |