summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_source_manager.h
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2019-05-28 19:20:56 -0400
committerBlake Oler <blake.oler@mongodb.com>2019-06-12 12:53:04 -0400
commitdfa8658c18142c560447c7bf6f34a6f788593d28 (patch)
tree587b77eacb8769f92e6976f0d875c79dc3179607 /src/mongo/db/s/migration_source_manager.h
parent4304ce376401b5213b63611d94f9fb1d938d9e39 (diff)
downloadmongo-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.h5
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