summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2020-02-12 02:20:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-20 01:06:01 +0000
commit82fa959d2b9686a8cd553babd0381b0e0d11574d (patch)
treec42577b190fb45119ce23247b064304dd0919f66 /src/mongo/db/commands.h
parent03792669b22c6d0e2785a823e5081a6125c2d37c (diff)
downloadmongo-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.h8
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,