diff options
author | Blake Oler <blake.oler@mongodb.com> | 2019-05-28 19:20:56 -0400 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2019-06-12 12:53:04 -0400 |
commit | dfa8658c18142c560447c7bf6f34a6f788593d28 (patch) | |
tree | 587b77eacb8769f92e6976f0d875c79dc3179607 /src/mongo/db/s/migration_source_manager.h | |
parent | 4304ce376401b5213b63611d94f9fb1d938d9e39 (diff) | |
download | mongo-dfa8658c18142c560447c7bf6f34a6f788593d28.tar.gz |
SERVER-40791 Track multi-statement transaction operations for migrations at commit time
Diffstat (limited to 'src/mongo/db/s/migration_source_manager.h')
-rw-r--r-- | src/mongo/db/s/migration_source_manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_source_manager.h b/src/mongo/db/s/migration_source_manager.h index b567b5ad7ce..cf0a14fd9df 100644 --- a/src/mongo/db/s/migration_source_manager.h +++ b/src/mongo/db/s/migration_source_manager.h @@ -77,6 +77,11 @@ public: */ static MigrationSourceManager* get(CollectionShardingRuntime* csr, CollectionShardingRuntime::CSRLock& csrLock); + /** + * It is the caller's responsibility to ensure that the collection locks for this namespace are + * held when this is called. The returned pointer should never be stored. + */ + static MigrationSourceManager* get_UNSAFE(CollectionShardingRuntime* csr); /** * Instantiates a new migration source manager with the specified migration parameters. Must be |