diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2018-02-02 16:02:30 +0000 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2018-02-13 11:04:43 +0000 |
commit | 1221b80ee0d65879a4c76ff98f78e92b53766cc0 (patch) | |
tree | a6e4f81b3a82160ba3663daa4e4eaac07fad652e /src/mongo/db/query/find_common.h | |
parent | ca0a855dfc0f479d85b76a640b12a259c0547310 (diff) | |
download | mongo-1221b80ee0d65879a4c76ff98f78e92b53766cc0.tar.gz |
SERVER-32912 Ensure that killCursors always invalidates a pinned cursor
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. */ |