diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2019-08-26 22:49:27 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-26 22:49:27 +0000 |
commit | f7cd49a1930516cea21437bd7a32e7f8bbf0a006 (patch) | |
tree | 3100b67a2bee4308f56cd57d80d4c4c4f04dbd1d /src/mongo/db/commands.h | |
parent | f062986a15452a25bd17aa485b706c1a60aacb6e (diff) | |
download | mongo-f7cd49a1930516cea21437bd7a32e7f8bbf0a006.tar.gz |
SERVER-43011 Add optional namespace restriction to failCommand failpoint
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 0d6b020d757..35ac31fcddb 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -225,12 +225,15 @@ struct CommandHelpers { */ static bool shouldActivateFailCommandFailPoint(const BSONObj& data, StringData cmdName, - Client* client); + Client* client, + const NamespaceString& nss); /** * Possibly uasserts according to the "failCommand" fail point. */ - static void evaluateFailCommandFailPoint(OperationContext* opCtx, StringData commandName); + static void evaluateFailCommandFailPoint(OperationContext* opCtx, + StringData commandName, + const NamespaceString& nss); /** * Handles marking kill on client disconnect. |