summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2019-08-26 22:49:27 +0000
committerevergreen <evergreen@mongodb.com>2019-08-26 22:49:27 +0000
commitf7cd49a1930516cea21437bd7a32e7f8bbf0a006 (patch)
tree3100b67a2bee4308f56cd57d80d4c4c4f04dbd1d /src/mongo/db/commands.h
parentf062986a15452a25bd17aa485b706c1a60aacb6e (diff)
downloadmongo-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.h7
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.