diff options
author | jannaerin <golden.janna@gmail.com> | 2018-07-12 17:14:58 -0400 |
---|---|---|
committer | jannaerin <golden.janna@gmail.com> | 2018-07-16 10:23:18 -0400 |
commit | f9b9dc297f1d3b7a84d4c36173c84e61e509eb12 (patch) | |
tree | f54b4eae3db95807c806456caffc4206cfe1fa63 /src/mongo/db/s/migration_destination_manager.h | |
parent | 298c3a04c118dcdb22cf27eaa0a9e7381b1e3da8 (diff) | |
download | mongo-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.h | 7 |
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. |