diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2020-02-12 02:20:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-20 01:06:01 +0000 |
commit | 82fa959d2b9686a8cd553babd0381b0e0d11574d (patch) | |
tree | c42577b190fb45119ce23247b064304dd0919f66 /src/mongo/db/commands.h | |
parent | 03792669b22c6d0e2785a823e5081a6125c2d37c (diff) | |
download | mongo-82fa959d2b9686a8cd553babd0381b0e0d11574d.tar.gz |
SERVER-46091 Add new failpoint to support driver testing of ResumableChangeStreamError label
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index a9467d34c0b..3eff8eb062d 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -272,6 +272,14 @@ struct CommandHelpers { Client* client); /** + * Checks if the command passed in is in the list of failCommands defined in the fail point. + */ + static bool shouldActivateFailCommandFailPoint(const BSONObj& data, + const NamespaceString& nss, + const Command* cmd, + Client* client); + + /** * Possibly uasserts according to the "failCommand" fail point. */ static void evaluateFailCommandFailPoint(OperationContext* opCtx, |