summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/check_sharding_index_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/check_sharding_index_command.cpp')
-rw-r--r--src/mongo/db/s/check_sharding_index_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/check_sharding_index_command.cpp b/src/mongo/db/s/check_sharding_index_command.cpp
index 7bc56741ae8..88cd5d4b0eb 100644
--- a/src/mongo/db/s/check_sharding_index_command.cpp
+++ b/src/mongo/db/s/check_sharding_index_command.cpp
@@ -121,7 +121,7 @@ public:
collection->getIndexCatalog()->findShardKeyPrefixedIndex(opCtx,
keyPattern,
true); // requireSingleKey
- if (idx == NULL) {
+ if (idx == nullptr) {
errmsg = "couldn't find valid index for shard key";
return false;
}