summaryrefslogtreecommitdiff
path: root/src/mongo/db/serverless/shard_split_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/serverless/shard_split_utils.cpp')
-rw-r--r--src/mongo/db/serverless/shard_split_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/serverless/shard_split_utils.cpp b/src/mongo/db/serverless/shard_split_utils.cpp
index 2380f9bb427..0af9ccc6195 100644
--- a/src/mongo/db/serverless/shard_split_utils.cpp
+++ b/src/mongo/db/serverless/shard_split_utils.cpp
@@ -29,8 +29,8 @@
#include "mongo/db/serverless/shard_split_utils.h"
#include "mongo/db/catalog_raii.h"
-#include "mongo/db/concurrency/exception_util.h"
#include "mongo/db/concurrency/lock_manager_defs.h"
+#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/db_raii.h"
#include "mongo/db/dbhelpers.h"
#include "mongo/db/ops/delete.h"
@@ -279,7 +279,7 @@ void RecipientAcceptSplitListener::onServerHeartbeatSucceededEvent(const HostAnd
_reportedSetNames[hostAndPort] = reply["setName"].str();
- if (!_hasPrimary && reply["isWritablePrimary"].booleanSafe()) {
+ if (!_hasPrimary && reply["ismaster"].booleanSafe()) {
_hasPrimary = true;
}