diff options
Diffstat (limited to 'src/mongo/db/query/find_common.h')
-rw-r--r-- | src/mongo/db/query/find_common.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/query/find_common.h b/src/mongo/db/query/find_common.h index 0e83e3cb546..6aaa8e390ff 100644 --- a/src/mongo/db/query/find_common.h +++ b/src/mongo/db/query/find_common.h @@ -54,14 +54,22 @@ extern const OperationContext::Decoration<AwaitDataState> awaitDataState; class BSONObj; class QueryRequest; -// 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); - // Failpoint for making getMore not wait for an awaitdata cursor. Allows us to avoid waiting during // tests. MONGO_FP_FORWARD_DECLARE(disableAwaitDataForGetMoreCmd); +// Enabling this fail point will cause the getMore command to busy wait after pinning the cursor but +// before we have started building the batch, until the fail point is disabled. +MONGO_FP_FORWARD_DECLARE(waitAfterPinningCursorBeforeGetMoreBatch); + +// Enabling this fail point will cause the getMore command to busy wait with its cursor pinned while +// building the batch, until the fail point is disabled. +MONGO_FP_FORWARD_DECLARE(waitWithPinnedCursorDuringGetMoreBatch); + +// Enabling this failpoint will cause the getMore to wait just before it unpins its cursor after it +// has completed building the current batch. +MONGO_FP_FORWARD_DECLARE(waitBeforeUnpinningOrDeletingCursorAfterGetMoreBatch); + /** * Suite of find/getMore related functions used in both the mongod and mongos query paths. */ |