summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/cursor_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/cursor_manager.cpp')
-rw-r--r--src/mongo/db/catalog/cursor_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/cursor_manager.cpp b/src/mongo/db/catalog/cursor_manager.cpp
index 6507b8fd1a5..d192d52ba25 100644
--- a/src/mongo/db/catalog/cursor_manager.cpp
+++ b/src/mongo/db/catalog/cursor_manager.cpp
@@ -34,6 +34,7 @@
#include "mongo/base/init.h"
#include "mongo/db/audit.h"
#include "mongo/db/auth/authorization_session.h"
+#include "mongo/db/background.h"
#include "mongo/db/catalog/collection.h"
#include "mongo/db/catalog/database.h"
#include "mongo/db/catalog/database_holder.h"
@@ -313,6 +314,7 @@ CursorManager::~CursorManager() {
void CursorManager::invalidateAll(bool collectionGoingAway) {
SimpleMutex::scoped_lock lk(_mutex);
+ fassert(28819, !BackgroundOperation::inProgForNs(_nss));
for (ExecSet::iterator it = _nonCachedExecutors.begin(); it != _nonCachedExecutors.end();
++it) {