summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find_common.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-11-30 10:03:34 -0500
committerDavid Storch <david.storch@10gen.com>2015-12-08 12:37:09 -0500
commit9f8ec07dd7ba300ea54899ff9c6c1d7ee638df3a (patch)
treecc7bae74960253e1e8490c1497fe03e2cdb30156 /src/mongo/db/query/find_common.h
parent4fd3712ce592f895cea5aff2209e4d26f5cf3a93 (diff)
downloadmongo-9f8ec07dd7ba300ea54899ff9c6c1d7ee638df3a.tar.gz
SERVER-21600 add integration test for killCursors command
Diffstat (limited to 'src/mongo/db/query/find_common.h')
-rw-r--r--src/mongo/db/query/find_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/find_common.h b/src/mongo/db/query/find_common.h
index b999f2e95e1..6029d511157 100644
--- a/src/mongo/db/query/find_common.h
+++ b/src/mongo/db/query/find_common.h
@@ -26,11 +26,17 @@
* it in the license file.
*/
+#include "mongo/util/fail_point_service.h"
+
namespace mongo {
class BSONObj;
class LiteParsedQuery;
+// Enabling this fail point will cause the getMore command to busy wait after pinning the cursor,
+// until the fail point is disabled.
+MONGO_FP_FORWARD_DECLARE(keepCursorPinnedDuringGetMore);
+
/**
* Suite of find/getMore related functions used in both the mongod and mongos query paths.
*/