summaryrefslogtreecommitdiff
path: root/src/mongo/db/serverless/shard_split_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/serverless/shard_split_utils.h')
-rw-r--r--src/mongo/db/serverless/shard_split_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/serverless/shard_split_utils.h b/src/mongo/db/serverless/shard_split_utils.h
index 19978fba1da..e896f9f97cf 100644
--- a/src/mongo/db/serverless/shard_split_utils.h
+++ b/src/mongo/db/serverless/shard_split_utils.h
@@ -118,6 +118,12 @@ bool shouldRemoveStateDocumentOnRecipient(OperationContext* opCtx,
const ShardSplitDonorDocument& stateDocument);
/**
+ * Returns StatusWith true if the validation succeeds otherwise returns different error status with
+ * the proper error causing the failure.
+ */
+Status validateRecipientNodesForShardSplit(const ShardSplitDonorDocument& stateDocument,
+ const repl::ReplSetConfig& localConfig);
+/**
* Listener that receives heartbeat events and fulfills a future once it sees the expected number
* of nodes in the recipient replica set to monitor.
*/