summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-05-29 15:57:49 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-05-30 13:41:29 -0400
commite7fd01e0293bbb46b330ba00819ceaa638e88921 (patch)
tree1d3227fd41237b9ed82a5c1b232060c12276b446 /src/mongo/db/commands
parentf74dc79abf9b6a317a550e95089ec3a0d45ec085 (diff)
downloadmongo-e7fd01e0293bbb46b330ba00819ceaa638e88921.tar.gz
SERVER-35275 rename fail point FP macros, improve docs
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/generic_servers.cpp2
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp4
-rw-r--r--src/mongo/db/commands/set_feature_compatibility_version_command.cpp4
-rw-r--r--src/mongo/db/commands/txn_cmds.cpp2
-rw-r--r--src/mongo/db/commands/validate.cpp2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/commands/generic_servers.cpp b/src/mongo/db/commands/generic_servers.cpp
index 3fbaea7c2a1..8d53be28ef5 100644
--- a/src/mongo/db/commands/generic_servers.cpp
+++ b/src/mongo/db/commands/generic_servers.cpp
@@ -138,7 +138,7 @@ public:
} hostInfoCmd;
-MONGO_FP_DECLARE(crashOnShutdown);
+MONGO_FAIL_POINT_DEFINE(crashOnShutdown);
int* volatile illegalAddress; // NOLINT - used for fail point only
class CmdGetCmdLineOpts : public BasicCommand {
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp
index 2877c72bca0..00ddd4ac7da 100644
--- a/src/mongo/db/commands/getmore_cmd.cpp
+++ b/src/mongo/db/commands/getmore_cmd.cpp
@@ -66,9 +66,9 @@ namespace mongo {
namespace {
-MONGO_FP_DECLARE(rsStopGetMoreCmd);
+MONGO_FAIL_POINT_DEFINE(rsStopGetMoreCmd);
-MONGO_FP_DECLARE(waitWithPinnedCursorDuringGetMoreBatch);
+MONGO_FAIL_POINT_DEFINE(waitWithPinnedCursorDuringGetMoreBatch);
/**
* Validates that the lsid of 'opCtx' matches that of 'cursor'. This must be called after
diff --git a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
index 892f8f6957a..1d6ca50d718 100644
--- a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
+++ b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp
@@ -56,8 +56,8 @@ namespace mongo {
namespace {
-MONGO_FP_DECLARE(featureCompatibilityDowngrade);
-MONGO_FP_DECLARE(featureCompatibilityUpgrade);
+MONGO_FAIL_POINT_DEFINE(featureCompatibilityDowngrade);
+MONGO_FAIL_POINT_DEFINE(featureCompatibilityUpgrade);
/**
* Sets the minimum allowed version for the cluster. If it is 3.4, then the node should not use 3.6
* features.
diff --git a/src/mongo/db/commands/txn_cmds.cpp b/src/mongo/db/commands/txn_cmds.cpp
index 9e7a05bba3f..23e65971b2a 100644
--- a/src/mongo/db/commands/txn_cmds.cpp
+++ b/src/mongo/db/commands/txn_cmds.cpp
@@ -93,7 +93,7 @@ public:
} commitTxn;
-MONGO_FP_DECLARE(pauseAfterTransactionPrepare);
+MONGO_FAIL_POINT_DEFINE(pauseAfterTransactionPrepare);
// TODO: This is a stub for testing storage prepare functionality.
class CmdPrepareTxn : public BasicCommand {
diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp
index 4ca9fe21135..273865e784d 100644
--- a/src/mongo/db/commands/validate.cpp
+++ b/src/mongo/db/commands/validate.cpp
@@ -49,7 +49,7 @@ using std::endl;
using std::string;
using std::stringstream;
-MONGO_FP_DECLARE(validateCmdCollectionNotValid);
+MONGO_FAIL_POINT_DEFINE(validateCmdCollectionNotValid);
namespace {