summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/type_shard_collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/type_shard_collection.cpp')
-rw-r--r--src/mongo/db/s/type_shard_collection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/s/type_shard_collection.cpp b/src/mongo/db/s/type_shard_collection.cpp
index 297d06471dc..a4720650021 100644
--- a/src/mongo/db/s/type_shard_collection.cpp
+++ b/src/mongo/db/s/type_shard_collection.cpp
@@ -68,4 +68,11 @@ BSONObj ShardCollectionType::toBSON() const {
return obj;
}
+void ShardCollectionType::setAllowMigrations(bool allowMigrations) {
+ if (allowMigrations)
+ setPre50CompatibleAllowMigrations(boost::none);
+ else
+ setPre50CompatibleAllowMigrations(false);
+}
+
} // namespace mongo