summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager.h
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2018-07-12 17:14:58 -0400
committerjannaerin <golden.janna@gmail.com>2018-07-16 10:23:18 -0400
commitf9b9dc297f1d3b7a84d4c36173c84e61e509eb12 (patch)
treef54b4eae3db95807c806456caffc4206cfe1fa63 /src/mongo/db/s/migration_destination_manager.h
parent298c3a04c118dcdb22cf27eaa0a9e7381b1e3da8 (diff)
downloadmongo-f9b9dc297f1d3b7a84d4c36173c84e61e509eb12.tar.gz
SERVER-36092 Create internal command to create collection on shard with uuid from primary shard
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.h')
-rw-r--r--src/mongo/db/s/migration_destination_manager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h
index eedf65b14fb..30aa70a282c 100644
--- a/src/mongo/db/s/migration_destination_manager.h
+++ b/src/mongo/db/s/migration_destination_manager.h
@@ -133,6 +133,13 @@ public:
Status startCommit(const MigrationSessionId& sessionId);
+ /**
+ * Creates the collection nss on the shard and clones the indexes and options from fromShardId.
+ */
+ static void cloneCollectionIndexesAndOptions(OperationContext* opCtx,
+ const NamespaceString& nss,
+ ShardId fromShardId);
+
private:
/**
* These log the argument msg; then, under lock, move msg to _errmsg and set the state to FAIL.